1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Use record for params.

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
Juho Heikka 2022-04-12 18:50:31 +03:00
parent dc82972327
commit 5152614134

View File

@ -5,15 +5,11 @@
import { EventEmitter } from "../event-emitter";
interface AppEventParams {
[key: string]: any;
}
export interface AppEvent {
name: string;
action: string;
destination?: string;
params?: AppEventParams;
params?: Record<string, any>;
}
export const appEventBus = new EventEmitter<[AppEvent]>();