DefinitelyTyped/types/document-promises/index.d.ts
2018-04-09 12:26:39 -07:00

24 lines
897 B
TypeScript

// Type definitions for document-promises 3.1
// Project: https://github.com/jonathantneal/document-promises#readme
// Definitions by: Tiger Oakes <https://github.com/NotWoods>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* document.parsed is a promise that fulfills when the document is parsed
* and `readyState` is `interactive`, before deferred and async scripts have run.
*/
export const parsed: Promise<void>;
/**
* document.contentLoaded is a promise that fulfills when the document is
* parsed, blocking scripts have completed, and `DOMContentLoaded` fires.
*/
export const contentLoaded: Promise<void>;
/**
* document.loaded is a promise that fulfills when the document is parsed,
* blocking scripts have completed, images, scripts, links and sub-frames
* have finished loading, and `readyState` is `complete`.
*/
export const loaded: Promise<void>;