mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Updated and fixed types for blocked package (#40831)
* Updated types for blocked * update version * lint
This commit is contained in:
parent
eeeb815207
commit
f1cf1c35fc
@ -3,5 +3,6 @@ import * as blocked from 'blocked';
|
||||
blocked((ms: number) => {
|
||||
// todo: show warning
|
||||
}, {
|
||||
threshold: 10
|
||||
threshold: 10,
|
||||
interval: 10,
|
||||
});
|
||||
|
||||
5
types/blocked/index.d.ts
vendored
5
types/blocked/index.d.ts
vendored
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user