ionic-angular
Version:
A powerful framework for building mobile and progressive web apps with JavaScript and Angular
36 lines (35 loc) • 746 B
TypeScript
import { Platform } from './platform';
/**
* @hidden
*/
export declare class DomDebouncer {
private dom;
private writeTask;
private readTask;
constructor(dom: DomController);
read(fn: DomCallback): Function;
write(fn: DomCallback): Function;
cancel(): void;
}
/**
* @hidden
*/
export declare class DomController {
plt: Platform;
private r;
private w;
private q;
constructor(plt: Platform);
debouncer(): DomDebouncer;
read(fn: DomCallback, timeout?: number): any;
write(fn: DomCallback, timeout?: number): any;
cancel(fn: any): void;
private _queue();
private _flush(timeStamp);
}
/**
* @hidden
*/
export declare type DomCallback = {
(timeStamp?: number): void;
};