AFFiNE/scripts/setup/polyfill.ts
2024-07-02 09:17:40 +00:00

13 lines
248 B
TypeScript

/* eslint-disable */
// @ts-nocheck
Promise.withResolvers ??= function withResolvers() {
var a,
b,
c = new this(function (resolve, reject) {
a = resolve;
b = reject;
});
return { resolve: a, reject: b, promise: c };
};