@electron/remote
Version:
[](https://circleci.com/gh/electron/remote/tree/main) [](https://npmjs.org/package/@electron/remote
12 lines (11 loc) • 336 B
TypeScript
export declare class CallbacksRegistry {
private nextId;
private callbacks;
private callbackIds;
private locationInfo;
add(callback: Function): number;
get(id: number): Function;
getLocation(callback: Function): string | undefined;
apply(id: number, ...args: any[]): any;
remove(id: number): void;
}