Skip to content

Commit

Permalink
fix timers primitive types (#664)
Browse files Browse the repository at this point in the history
Co-authored-by: Kiko Beats <josefrancisco.verdu@gmail.com>
  • Loading branch information
smaeda-ks and Kikobeats committed Oct 24, 2023
1 parent fe543d1 commit b2aefe6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-rockets-fix.md
@@ -0,0 +1,5 @@
---
"@edge-runtime/primitives": patch
---

fix timers primitive types
8 changes: 3 additions & 5 deletions packages/primitives/type-definitions/timers.d.ts
@@ -1,5 +1,3 @@
declare const _setTimeout: typeof Number
declare const _setInterval: typeof Number

export { _setTimeout as setTimeout }
export { _setInterval as setInterval }
declare const _setTimeout: (callback: () => void, ms?: number) => number
declare const _setInterval: (callback: () => void, ms?: number) => number
export { _setTimeout as setTimeout, _setInterval as setInterval }

1 comment on commit b2aefe6

@vercel
Copy link

@vercel vercel bot commented on b2aefe6 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

edge-runtime – ./

edge-runtime.vercel.app
edge-runtime-git-main.vercel.sh
edge-runtime.vercel.sh

Please sign in to comment.