UNPKG

rxjs-zone-less

Version:

A set of wrappers for RxJS to avoid unnecessary change detection and zone interference in Angular.

17 lines (16 loc) 757 B
export declare const Promise: PromiseConstructor; export declare function setInterval(cb: TimerHandler, ms?: number): number; export declare function clearInterval(id: number): void; /** * @description * * This function returns the zone un-patched API for the a specific Browser API. * If no target is passed the window is used instead * * @param name - The name of the API to check. * @param target - The target to get un-patched API from. * @return {Function} - The zone un-patched API in question. * */ export declare function getZoneUnPatchedApi<N extends keyof (Window & typeof globalThis)>(name: N): (Window & typeof globalThis)[N]; export declare function getZoneUnPatchedApi<T extends object, N extends keyof T>(target: T, name: N): T[N];