query-promise.d.ts 669 B

123456789
  1. import { entityKind } from "./entity.js";
  2. export declare abstract class QueryPromise<T> implements Promise<T> {
  3. static readonly [entityKind]: string;
  4. [Symbol.toStringTag]: string;
  5. catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<T | TResult>;
  6. finally(onFinally?: (() => void) | null | undefined): Promise<T>;
  7. then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
  8. abstract execute(): Promise<T>;
  9. }