Skip to content

Commit

Permalink
Add setTimeout typings
Browse files Browse the repository at this point in the history
  • Loading branch information
takameyer committed Aug 10, 2023
1 parent 9d6f6bf commit 7a26fd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration-tests/tests/src/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ declare namespace Chai {
/** Calls the callback on the next tick of the event loop */
declare function setImmediate(cb: () => void): void;

/** Rough typing of setTimeout to avoid type errors */
declare function setTimeout(cb: (args: any[]) => void, timeout: number): any;

interface Console {
error(message?: unknown, ...optionalParams: unknown[]): void;
log(message?: unknown, ...optionalParams: unknown[]): void;
Expand Down

0 comments on commit 7a26fd0

Please sign in to comment.