signal-desktop/ts/shims/events.ts

7 lines
320 B
TypeScript
Raw Normal View History

2020-09-16 19:31:05 +00:00
// Matching Whisper.events.trigger API
// eslint-disable-next-line max-len
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
export function trigger(name: string, param1?: any, param2?: any): void {
2019-01-14 21:49:58 +00:00
window.Whisper.events.trigger(name, param1, param2);
}