mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-08 06:42:22 +08:00
Merge pull request #21377 from dex4er/wtfnode
New typings for module wtfnode
This commit is contained in:
7
types/wtfnode/index.d.ts
vendored
Normal file
7
types/wtfnode/index.d.ts
vendored
Normal 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;
|
||||
23
types/wtfnode/tsconfig.json
Normal file
23
types/wtfnode/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",
|
||||
"wtfnode-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/wtfnode/tslint.json
Normal file
1
types/wtfnode/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
4
types/wtfnode/wtfnode-tests.ts
Normal file
4
types/wtfnode/wtfnode-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import * as wtf from 'wtfnode';
|
||||
|
||||
wtf.init();
|
||||
wtf.dump();
|
||||
Reference in New Issue
Block a user