DefinitelyTyped/types/blocked/blocked-tests.ts
l-jonas 1809675f6a Add types for the package "blocked" (#25593)
* Add types for the package "blocked"

* Update author

* Rename MyFunction to Blocked

* Make options optional

* Return Node.JS timer instead of custom declaration
2018-05-08 12:51:10 -07:00

8 lines
112 B
TypeScript

import * as blocked from 'blocked';
blocked((ms: number) => {
// todo: show warning
}, {
threshold: 10
});