[ofe] Add type declaration file

This commit is contained in:
Ben Davies
2017-06-13 01:58:29 -03:00
parent 555ae8a2d1
commit eb27ec80ab
4 changed files with 39 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
// Type definitions for ofe 0.5
// Project: https://github.com/trevnorris/node-ofe
// Definitions by: Ben Davies <https://github.com/Morfent>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function call(): 'done';
+8
View File
@@ -0,0 +1,8 @@
/// <reference types="node" />
import * as ofe from 'ofe';
let ret = ofe.call();
if (ret === 'done') {
console.log('The ofe module was successfully called to create a heapdump if the process runs out of memory.');
}
+22
View File
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"ofe-tests.ts"
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "dtslint/dt.json"
}