diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-27 19:33:01 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-27 19:33:01 -0500 |
commit | 14d12f6ba20b837a04c638b935773f3120e194ff (patch) | |
tree | dcd6b61d51ff39c97b60812b2bf3c8cd564347f8 /types/other | |
parent | d5b1217df3fe7480fc5f58fe194f5bbf73281094 (diff) |
Update timer types and such
Diffstat (limited to 'types/other')
-rw-r--r-- | types/other/globals.d.ts (renamed from types/other/web-set-timeout.d.ts) | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/types/other/web-set-timeout.d.ts b/types/other/globals.d.ts index 98e40dab..330f16c2 100644 --- a/types/other/web-set-timeout.d.ts +++ b/types/other/globals.d.ts @@ -15,10 +15,8 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -declare module 'web-set-timeout' { - global { - // These types are used to ensure that setTimeout returns a number - function setTimeout<TArgs extends unknown[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): number; - function setTimeout(callback: (args: void) => void, ms?: number): number; - } +declare global { + function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void; } + +export {}; |