Merge pull request #21377 from dex4er/wtfnode

New typings for module wtfnode
This commit is contained in:
Daniel Rosenwasser
2017-11-10 14:02:10 -08:00
committed by GitHub
4 changed files with 35 additions and 0 deletions

7
types/wtfnode/index.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
// Type definitions for wtfnode 0.5
// Project: https://github.com/myndzi/wtfnode
// Definitions by: Piotr Roszatycki <https://github.com/dex4er>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function dump(): void;
export function init(): void;

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",
"wtfnode-tests.ts"
]
}

View File

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

View File

@@ -0,0 +1,4 @@
import * as wtf from 'wtfnode';
wtf.init();
wtf.dump();