UNPKG

rxjs-zone-less

Version:

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

18 lines (17 loc) 710 B
import { Subscription } from 'rxjs'; declare const cancelAnimationFrame: { (handle: number): void; (handle: number): void; } & typeof globalThis.cancelAnimationFrame; declare const requestAnimationFrame: { (callback: FrameRequestCallback): number; (callback: FrameRequestCallback): number; } & typeof globalThis.requestAnimationFrame; interface AnimationFrameProvider { schedule(callback: FrameRequestCallback): Subscription; requestAnimationFrame: typeof requestAnimationFrame; cancelAnimationFrame: typeof cancelAnimationFrame; delegate?: Omit<AnimationFrameProvider, 'schedule' | 'delegate'>; } export declare const animationFrameProvider: AnimationFrameProvider; export {};