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

Add optional destination property to app event (#5230)

This commit is contained in:
Juho Heikka 2022-04-13 11:32:04 +03:00 committed by GitHub
parent 39b17334ba
commit d5528eb9fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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