[next-tick] Add types

This commit is contained in:
Dimitri Benin 2018-12-24 12:33:22 +01:00
parent a1b863c972
commit edc2bf6f95
4 changed files with 35 additions and 0 deletions

8
types/next-tick/index.d.ts vendored Normal file
View 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;

View File

@ -0,0 +1,3 @@
import nextTick = require('next-tick');
nextTick(() => {});

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

View File

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