Skip to main content

@graphql-tools/url-loader

Interfaces#

Type aliases#

Type aliases#

AsyncFetchFn#

Ƭ AsyncFetchFn: fetch

Defined in: packages/loaders/url/src/index.ts:35


AsyncImportFn#

Ƭ AsyncImportFn<T\>: (moduleName: string) => PromiseLike<T\>

Type parameters#

NameDefault
Tunknown

Type declaration#

▸ (moduleName: string): PromiseLike<T\>

Parameters#

NameType
moduleNamestring

Returns: PromiseLike<T\>

Defined in: packages/loaders/url/src/index.ts:57


FetchFn#

Ƭ FetchFn: AsyncFetchFn | SyncFetchFn

Defined in: packages/loaders/url/src/index.ts:41


SyncFetchFn#

Ƭ SyncFetchFn: (input: RequestInfo, init?: RequestInit) => SyncResponse

Type declaration#

▸ (input: RequestInfo, init?: RequestInit): SyncResponse

Parameters#

NameType
inputRequestInfo
init?RequestInit

Returns: SyncResponse

Defined in: packages/loaders/url/src/index.ts:36


SyncImportFn#

Ƭ SyncImportFn<T\>: (moduleName: string) => T

Type parameters#

NameDefault
Tunknown

Type declaration#

▸ (moduleName: string): T

Parameters#

NameType
moduleNamestring

Returns: T

Defined in: packages/loaders/url/src/index.ts:58


SyncResponse#

Ƭ SyncResponse: Omit<Response, "json" | "text"\> & { json: () => any ; text: () => string }

Defined in: packages/loaders/url/src/index.ts:37