mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 13:01:59 +03:00
13 lines
248 B
TypeScript
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 };
|
|
};
|