diff --git a/types/dom-loaded/dom-loaded-tests.ts b/types/dom-loaded/dom-loaded-tests.ts new file mode 100644 index 0000000000..f8a3e5486d --- /dev/null +++ b/types/dom-loaded/dom-loaded-tests.ts @@ -0,0 +1,3 @@ +import domLoaded = require("dom-loaded"); + +domLoaded.then(() => console.log("DOM is loaded")); diff --git a/types/dom-loaded/index.d.ts b/types/dom-loaded/index.d.ts new file mode 100644 index 0000000000..5d4d5154c4 --- /dev/null +++ b/types/dom-loaded/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for dom-loaded 1.0 +// Project: https://github.com/sindresorhus/dom-loaded#readme +// Definitions by: Lukas Tetzlaf +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare const domLoaded: Promise; +export = domLoaded; diff --git a/types/dom-loaded/tsconfig.json b/types/dom-loaded/tsconfig.json new file mode 100644 index 0000000000..7d17914d86 --- /dev/null +++ b/types/dom-loaded/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "dom-loaded-tests.ts" + ] +} diff --git a/types/dom-loaded/tslint.json b/types/dom-loaded/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/dom-loaded/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }