Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
27 lines
579 B
Plaintext
27 lines
579 B
Plaintext
import { entityKind } from "./entity.js";
|
|
class QueryPromise {
|
|
static [entityKind] = "QueryPromise";
|
|
[Symbol.toStringTag] = "QueryPromise";
|
|
catch(onRejected) {
|
|
return this.then(void 0, onRejected);
|
|
}
|
|
finally(onFinally) {
|
|
return this.then(
|
|
(value) => {
|
|
onFinally?.();
|
|
return value;
|
|
},
|
|
(reason) => {
|
|
onFinally?.();
|
|
throw reason;
|
|
}
|
|
);
|
|
}
|
|
then(onFulfilled, onRejected) {
|
|
return this.execute().then(onFulfilled, onRejected);
|
|
}
|
|
}
|
|
export {
|
|
QueryPromise
|
|
};
|
|
//# sourceMappingURL=query-promise.js.map |