mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-29 05:54:55 +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 };
|
|
};
|