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:
parent
dc82972327
commit
5152614134
@ -5,15 +5,11 @@
|
|||||||
|
|
||||||
import { EventEmitter } from "../event-emitter";
|
import { EventEmitter } from "../event-emitter";
|
||||||
|
|
||||||
interface AppEventParams {
|
|
||||||
[key: string]: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AppEvent {
|
export interface AppEvent {
|
||||||
name: string;
|
name: string;
|
||||||
action: string;
|
action: string;
|
||||||
destination?: string;
|
destination?: string;
|
||||||
params?: AppEventParams;
|
params?: Record<string, any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const appEventBus = new EventEmitter<[AppEvent]>();
|
export const appEventBus = new EventEmitter<[AppEvent]>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user