mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 02:01:40 -05:00
Improve global fetch
type
This commit is contained in:
parent
7720ae835e
commit
2a2e3ffe4f
1 changed files with 9 additions and 1 deletions
10
packages/apollo-server-env/src/global.d.ts
vendored
10
packages/apollo-server-env/src/global.d.ts
vendored
|
@ -1,4 +1,12 @@
|
|||
type fetch = typeof import('./fetch').fetch;
|
||||
declare function fetch(
|
||||
input?: RequestInfo,
|
||||
init?: RequestInit,
|
||||
): Promise<Response>;
|
||||
|
||||
declare interface GlobalFetch {
|
||||
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
||||
}
|
||||
|
||||
type RequestInfo = import('./fetch').RequestInfo;
|
||||
type Headers = import('./fetch').Headers;
|
||||
type HeadersInit = import('./fetch').HeadersInit;
|
||||
|
|
Loading…
Add table
Reference in a new issue