Initialisation
Added the packages and files for the backend server
This commit is contained in:
33
node_modules/@apollo/utils.fetcher/dist/index.d.ts
generated
vendored
Normal file
33
node_modules/@apollo/utils.fetcher/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/// <reference types="node" />
|
||||
export interface FetcherRequestInit {
|
||||
method?: string;
|
||||
headers?: Record<string, string>;
|
||||
body?: string | Buffer;
|
||||
signal?: any;
|
||||
}
|
||||
export interface FetcherResponse {
|
||||
readonly bodyUsed: boolean;
|
||||
readonly url: string;
|
||||
readonly redirected: boolean;
|
||||
readonly status: number;
|
||||
readonly ok: boolean;
|
||||
readonly statusText: string;
|
||||
readonly headers: FetcherHeaders;
|
||||
arrayBuffer(): Promise<ArrayBuffer>;
|
||||
text(): Promise<string>;
|
||||
json(): Promise<any>;
|
||||
clone(): FetcherResponse;
|
||||
}
|
||||
export interface FetcherHeaders extends Iterable<[string, string]> {
|
||||
append(name: string, value: string): void;
|
||||
delete(name: string): void;
|
||||
get(name: string): string | null;
|
||||
has(name: string): boolean;
|
||||
set(name: string, value: string): void;
|
||||
entries(): Iterator<[string, string]>;
|
||||
keys(): Iterator<string>;
|
||||
values(): Iterator<string>;
|
||||
[Symbol.iterator](): Iterator<[string, string]>;
|
||||
}
|
||||
export type Fetcher = (url: string, init?: FetcherRequestInit) => Promise<FetcherResponse>;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
Reference in New Issue
Block a user