UNPKG

skynet-mysky-utils

Version:
15 lines 595 B
export declare const errorWindowClosed = "window-closed"; export declare const dispatchedErrorEvent = "catchError"; export declare class PromiseController { cleanup(): void; } /** * Checks if there has been an error from the window on an interval. * * @returns - The promise that rejects if the listener encounters an error from the remote window, and a controller that can abort the event listener and clean up the promise. */ export declare function monitorWindowError(): { promise: Promise<void>; controller: PromiseController; }; //# sourceMappingURL=window-listener.d.ts.map