mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
* Change `object` to `Record<string, unknown>` * Change `object` to `Record<string, unknown>` Pt. 2 * Update ForegroundSyncService - Manage finish message in the listener to more gaurantee a message back - Make the timeout much longer - Allow it to throw if the background sync service threw --------- Co-authored-by: Cesar Gonzalez <cesar.a.gonzalezcs@gmail.com>
18 lines
481 B
TypeScript
18 lines
481 B
TypeScript
export interface MessageBase {
|
|
command: string;
|
|
}
|
|
|
|
/**
|
|
* @deprecated Use the observable from the appropriate service instead.
|
|
*/
|
|
export abstract class BroadcasterService {
|
|
/**
|
|
* @deprecated Use the observable from the appropriate service instead.
|
|
*/
|
|
abstract subscribe(id: string, messageCallback: (message: MessageBase) => void): void;
|
|
/**
|
|
* @deprecated Use the observable from the appropriate service instead.
|
|
*/
|
|
abstract unsubscribe(id: string): void;
|
|
}
|