We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6633730 commit 9e872dcCopy full SHA for 9e872dc
src/utils/promiseWithResolvers.ts
@@ -1,6 +1,6 @@
1
export const promiseWithResolvers =
2
// @ts-expect-error TODO: replace with `Promise.withResolvers()` once it lands in node
3
- Promise.withResolvers ||
+ Promise.withResolvers?.bind(Promise) ||
4
function promiseWithResolvers<T>() {
5
let resolve!: (t: T) => void
6
let reject!: (err: unknown) => void
0 commit comments