1 | declare class DelayedFetch implements PromiseLike<Response> {
|
2 | request: Request;
|
3 | fetchFunction: typeof fetch;
|
4 | innerPromise: Promise<Response> | null;
|
5 | constructor(delayedFunction: Promise<Response>);
|
6 | withHeader(key: string, value: string): this;
|
7 | then<TResult1 = Response, TResult2 = never>(onfulfilled?: ((value: Response) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
|
8 | catch<TResult2 = never>(onrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<Response | TResult2>;
|
9 | private doInner;
|
10 | }
|