Skip to main content

Module: fetch/src

Enumerations

Classes

Interfaces

Functions

fetch

fetch<R>(url, type?): Promise<R>

Type parameters

Name
R

Parameters

NameTypeDescription
urlstring | URL
type?JSON

Returns

Promise<R>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:21

fetch<R>(url, options, type?): Promise<R>

Type parameters

Name
R

Parameters

NameType
urlstring | URL
optionsRequestOptions
type?JSON

Returns

Promise<R>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:22

fetch(url, type): Promise<Buffer>

Parameters

NameType
urlstring | URL
typeBuffer

Returns

Promise<Buffer>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:23

fetch(url, options, type): Promise<Buffer>

Parameters

NameType
urlstring | URL
optionsRequestOptions
typeBuffer

Returns

Promise<Buffer>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:24

fetch(url, type): Promise<Blob>

Parameters

NameType
urlstring | URL
typeBlob

Returns

Promise<Blob>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:25

fetch(url, options, type): Promise<Blob>

Parameters

NameType
urlstring | URL
optionsRequestOptions
typeBlob

Returns

Promise<Blob>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:26

fetch(url, type): Promise<string>

Parameters

NameType
urlstring | URL
typeText

Returns

Promise<string>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:27

fetch(url, options, type): Promise<string>

Parameters

NameType
urlstring | URL
optionsRequestOptions
typeText

Returns

Promise<string>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:28

fetch(url, type): Promise<Response>

Parameters

NameType
urlstring | URL
typeResult

Returns

Promise<Response>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:29

fetch(url, options, type): Promise<Response>

Parameters

NameType
urlstring | URL
optionsRequestOptions
typeResult

Returns

Promise<Response>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:30

fetch<R>(url, options, type): Promise<Response | Blob | Buffer | string | R>

Type parameters

Name
R

Parameters

NameType
urlstring | URL
optionsRequestOptions
typeFetchResultTypes

Returns

Promise<Response | Blob | Buffer | string | R>

Defined in

projects/utilities/packages/fetch/src/lib/fetch.ts:31