signal-desktop/ts/shims/events.ts

9 lines
302 B
TypeScript
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2019 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
2020-09-16 19:31:05 +00:00
// Matching Whisper.events.trigger API
2022-06-03 21:07:51 +00:00
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2021-11-12 01:17:29 +00:00
export function trigger(name: string, ...rest: Array<any>): void {
window.Whisper.events.trigger(name, ...rest);
2019-01-14 21:49:58 +00:00
}