AnimationFrameAction.d.ts 739 B

123456789101112131415
  1. import { AsyncAction } from './AsyncAction';
  2. import { AnimationFrameScheduler } from './AnimationFrameScheduler';
  3. import { SchedulerAction } from '../types';
  4. /**
  5. * We need this JSDoc comment for affecting ESDoc.
  6. * @ignore
  7. * @extends {Ignored}
  8. */
  9. export declare class AnimationFrameAction<T> extends AsyncAction<T> {
  10. protected scheduler: AnimationFrameScheduler;
  11. protected work: (this: SchedulerAction<T>, state?: T) => void;
  12. constructor(scheduler: AnimationFrameScheduler, work: (this: SchedulerAction<T>, state?: T) => void);
  13. protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay?: number): any;
  14. protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay?: number): any;
  15. }