Updated and fixed types for blocked package (#40831)

* Updated types for blocked

* update version

* lint
This commit is contained in:
millerick
2019-12-05 21:39:51 -08:00
committed by Ron Buckton
parent eeeb815207
commit f1cf1c35fc
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -3,5 +3,6 @@ import * as blocked from 'blocked';
blocked((ms: number) => {
// todo: show warning
}, {
threshold: 10
threshold: 10,
interval: 10,
});
+3 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for blocked 1.2
// Type definitions for blocked 1.3
// Project: https://github.com/visionmedia/node-blocked#readme
// Definitions by: Jonas Lochmann <https://github.com/l-jonas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -19,6 +19,7 @@ declare function Blocked(callback: (ms: number) => void, options?: Blocked.Optio
declare namespace Blocked {
interface Options {
threshold: number; // in milliseconds
threshold?: number; // in milliseconds
interval?: number; // in milliseconds
}
}