2022-01-21 08:28:41 +00:00
|
|
|
import { AsyncAction } from './AsyncAction';
|
|
|
|
import { AnimationFrameScheduler } from './AnimationFrameScheduler';
|
|
|
|
import { SchedulerAction } from '../types';
|
2022-05-29 09:24:36 +00:00
|
|
|
/**
|
|
|
|
* We need this JSDoc comment for affecting ESDoc.
|
|
|
|
* @ignore
|
|
|
|
* @extends {Ignored}
|
|
|
|
*/
|
2022-01-21 08:28:41 +00:00
|
|
|
export declare class AnimationFrameAction<T> extends AsyncAction<T> {
|
|
|
|
protected scheduler: AnimationFrameScheduler;
|
|
|
|
protected work: (this: SchedulerAction<T>, state?: T) => void;
|
|
|
|
constructor(scheduler: AnimationFrameScheduler, work: (this: SchedulerAction<T>, state?: T) => void);
|
|
|
|
protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay?: number): any;
|
|
|
|
protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay?: number): any;
|
|
|
|
}
|