mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[@wordpress/dom-ready] add new definitions (#35878)
* [@wordpress/dom-ready] add new definitions * remove typescript version constraint since this is a simple module
This commit is contained in:
parent
b89e93cc18
commit
05a805867b
6
types/wordpress__dom-ready/index.d.ts
vendored
Normal file
6
types/wordpress__dom-ready/index.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
// Type definitions for @wordpress/dom-ready 2.3
|
||||
// Project: https://github.com/WordPress/gutenberg/tree/master/packages/dom-ready/README.md
|
||||
// Definitions by: Derek Sifford <https://github.com/dsifford>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export default function domReady(callback: () => void): void;
|
||||
19
types/wordpress__dom-ready/tsconfig.json
Normal file
19
types/wordpress__dom-ready/tsconfig.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"@wordpress/dom-ready": ["wordpress__dom-ready"]
|
||||
}
|
||||
},
|
||||
"files": ["index.d.ts", "wordpress__dom-ready-tests.ts"]
|
||||
}
|
||||
1
types/wordpress__dom-ready/tslint.json
Normal file
1
types/wordpress__dom-ready/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
3
types/wordpress__dom-ready/wordpress__dom-ready-tests.ts
Normal file
3
types/wordpress__dom-ready/wordpress__dom-ready-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import domReady from "@wordpress/dom-ready";
|
||||
|
||||
domReady(() => void 0);
|
||||
Loading…
Reference in New Issue
Block a user