mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
[ofe] Add type declaration file
This commit is contained in:
Vendored
+6
@@ -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';
|
||||
@@ -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.');
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user