mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
308 B
TypeScript
17 lines
308 B
TypeScript
import { parsed, contentLoaded, loaded } from 'document-promises';
|
|
|
|
let promise: Promise<void>;
|
|
promise = parsed;
|
|
promise = contentLoaded;
|
|
promise = loaded;
|
|
|
|
parsed.then(() => {
|
|
// Document parsed
|
|
});
|
|
contentLoaded.then(() => {
|
|
// Document is ready
|
|
});
|
|
loaded.then(() => {
|
|
// Document loaded
|
|
});
|