From d3197b055422d35d46cfbb444bcbe92cb22d32b0 Mon Sep 17 00:00:00 2001 From: Alexander T Date: Wed, 30 Oct 2019 00:09:02 +0200 Subject: [PATCH] document-promises: Provides its own types (#39626) --- notNeededPackages.json | 6 +++++ .../document-promises-tests.ts | 16 ------------- types/document-promises/index.d.ts | 23 ------------------- types/document-promises/tsconfig.json | 23 ------------------- types/document-promises/tslint.json | 1 - 5 files changed, 6 insertions(+), 63 deletions(-) delete mode 100644 types/document-promises/document-promises-tests.ts delete mode 100644 types/document-promises/index.d.ts delete mode 100644 types/document-promises/tsconfig.json delete mode 100644 types/document-promises/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 98f6234530..949bb2175c 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -822,6 +822,12 @@ "sourceRepoURL": "https://github.com/joyent/docker-file-parser", "asOfVersion": "1.0.3" }, + { + "libraryName": "document-promises", + "typingsPackageName": "document-promises", + "sourceRepoURL": "https://github.com/jonathantneal/document-promises#readme", + "asOfVersion": "4.0.0" + }, { "libraryName": "dom-helpers", "typingsPackageName": "dom-helpers", diff --git a/types/document-promises/document-promises-tests.ts b/types/document-promises/document-promises-tests.ts deleted file mode 100644 index 5e45dffd5f..0000000000 --- a/types/document-promises/document-promises-tests.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { parsed, contentLoaded, loaded } from 'document-promises'; - -let promise: Promise; -promise = parsed; -promise = contentLoaded; -promise = loaded; - -parsed.then(() => { - // Document parsed -}); -contentLoaded.then(() => { - // Document is ready -}); -loaded.then(() => { - // Document loaded -}); diff --git a/types/document-promises/index.d.ts b/types/document-promises/index.d.ts deleted file mode 100644 index 2202c0d7ab..0000000000 --- a/types/document-promises/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Type definitions for document-promises 3.1 -// Project: https://github.com/jonathantneal/document-promises#readme -// Definitions by: Tiger Oakes -// 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; - -/** - * document.contentLoaded is a promise that fulfills when the document is - * parsed, blocking scripts have completed, and `DOMContentLoaded` fires. - */ -export const contentLoaded: Promise; - -/** - * 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; diff --git a/types/document-promises/tsconfig.json b/types/document-promises/tsconfig.json deleted file mode 100644 index 6b1ddaaa6b..0000000000 --- a/types/document-promises/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "document-promises-tests.ts" - ] -} diff --git a/types/document-promises/tslint.json b/types/document-promises/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/document-promises/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }