mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
897 B
TypeScript
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>;
|