mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Add typings for dom-loaded
This commit is contained in:
3
types/dom-loaded/dom-loaded-tests.ts
Normal file
3
types/dom-loaded/dom-loaded-tests.ts
Normal 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
7
types/dom-loaded/index.d.ts
vendored
Normal 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;
|
||||
24
types/dom-loaded/tsconfig.json
Normal file
24
types/dom-loaded/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/dom-loaded/tslint.json
Normal file
1
types/dom-loaded/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user