summaryrefslogtreecommitdiff
path: root/packages/frontend/src/events.ts
blob: dfd3d4120cec5d3a605b849145cad687cc424119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * SPDX-FileCopyrightText: syuilo and misskey-project
 * SPDX-License-Identifier: AGPL-3.0-only
 */

import { EventEmitter } from 'eventemitter3';
import * as Misskey from 'misskey-js';

export const globalEvents = new EventEmitter<{
	themeChanging: () => void;
	themeChanged: () => void;
	clientNotification: (notification: Misskey.entities.Notification) => void;
}>();