mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for the package "blocked" * Update author * Rename MyFunction to Blocked * Make options optional * Return Node.JS timer instead of custom declaration
8 lines
112 B
TypeScript
8 lines
112 B
TypeScript
import * as blocked from 'blocked';
|
|
|
|
blocked((ms: number) => {
|
|
// todo: show warning
|
|
}, {
|
|
threshold: 10
|
|
});
|