mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[next-tick] Add types
This commit is contained in:
parent
a1b863c972
commit
edc2bf6f95
8
types/next-tick/index.d.ts
vendored
Normal file
8
types/next-tick/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for next-tick 1.0
|
||||
// Project: https://github.com/medikoo/next-tick#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = nextTick;
|
||||
|
||||
declare function nextTick(callback: () => void): void;
|
||||
3
types/next-tick/next-tick-tests.ts
Normal file
3
types/next-tick/next-tick-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import nextTick = require('next-tick');
|
||||
|
||||
nextTick(() => {});
|
||||
23
types/next-tick/tsconfig.json
Normal file
23
types/next-tick/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"next-tick-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/next-tick/tslint.json
Normal file
1
types/next-tick/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user