mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
adds typings for the 'prometheus-gc-stats' package
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for prometheus-gc-stats 0.6
|
||||
// Project: https://github.com/SimenB/node-prometheus-gc-stats
|
||||
// Definitions by: Daniel Byrne <https://github.com/danwbyrne>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// register is typeof require('prom-client').Registry which has its own .d.ts
|
||||
declare function gcStats(register: any): () => void;
|
||||
|
||||
export = gcStats;
|
||||
@@ -0,0 +1,5 @@
|
||||
import gcStats = require('prometheus-gc-stats');
|
||||
|
||||
const testFunc = gcStats('something');
|
||||
// $ExpectType void
|
||||
testFunc();
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"prometheus-gc-stats-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user