Add typings for dom-loaded

This commit is contained in:
Lukas Tetzlaff
2018-10-24 23:56:16 +02:00
parent 9491811758
commit febbbeea3f
4 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
import domLoaded = require("dom-loaded");
domLoaded.then(() => console.log("DOM is loaded"));

7
types/dom-loaded/index.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
// Type definitions for dom-loaded 1.0
// Project: https://github.com/sindresorhus/dom-loaded#readme
// Definitions by: Lukas Tetzlaf <https://github.com/ltetzlaff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare const domLoaded: Promise<void>;
export = domLoaded;

View File

@@ -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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }