We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f122d9b commit 9fc4c6dCopy full SHA for 9fc4c6d
packages/node-http-handler/src/timing.ts
@@ -3,6 +3,6 @@
3
* For test spies.
4
*/
5
export const timing = {
6
- setTimeout: (cb, timeout) => setTimeout(cb, timeout),
7
- clearTimeout: (id) => clearTimeout(id),
+ setTimeout: (cb: () => void, ms?: number) => setTimeout(cb, ms),
+ clearTimeout: (timeoutId: NodeJS.Timeout | string | number | undefined) => clearTimeout(timeoutId),
8
};
0 commit comments