AFFiNE/scripts/setup/polyfill.ts

13 lines
248 B
TypeScript
Raw Normal View History

2024-07-02 12:17:39 +03:00
/* 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 };
};