Module: fetch/src
Enumerations
Classes
Interfaces
Functions
fetch
▸ fetch<R
>(url
, type?
): Promise
<R
>
Type parameters
Name |
---|
R |
Parameters
Name | Type | Description |
---|---|---|
url | string | 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
Name | Type |
---|---|
url | string | URL |
options | RequestOptions |
type? | JSON |
Returns
Promise
<R
>
Defined in
projects/utilities/packages/fetch/src/lib/fetch.ts:22
▸ fetch(url
, type
): Promise
<Buffer
>
Parameters
Name | Type |
---|---|
url | string | URL |
type | Buffer |
Returns
Promise
<Buffer
>
Defined in
projects/utilities/packages/fetch/src/lib/fetch.ts:23
▸ fetch(url
, options
, type
): Promise
<Buffer
>
Parameters
Name | Type |
---|---|
url | string | URL |
options | RequestOptions |
type | Buffer |
Returns
Promise
<Buffer
>
Defined in
projects/utilities/packages/fetch/src/lib/fetch.ts:24
▸ fetch(url
, type
): Promise
<Blob
>
Parameters
Name | Type |
---|---|
url | string | URL |
type | Blob |
Returns
Promise
<Blob
>
Defined in
projects/utilities/packages/fetch/src/lib/fetch.ts:25
▸ fetch(url
, options
, type
): Promise
<Blob
>
Parameters
Name | Type |
---|---|
url | string | URL |
options | RequestOptions |
type | Blob |
Returns
Promise
<Blob
>
Defined in
projects/utilities/packages/fetch/src/lib/fetch.ts:26
▸ fetch(url
, type
): Promise
<string
>
Parameters
Name | Type |
---|---|
url | string | URL |
type | Text |
Returns
Promise
<string
>
Defined in
projects/utilities/packages/fetch/src/lib/fetch.ts:27
▸ fetch(url
, options
, type
): Promise
<string
>
Parameters
Name | Type |
---|---|
url | string | URL |
options | RequestOptions |
type | Text |
Returns
Promise
<string
>
Defined in
projects/utilities/packages/fetch/src/lib/fetch.ts:28
▸ fetch(url
, type
): Promise
<Response
>
Parameters
Name | Type |
---|---|
url | string | URL |
type | Result |
Returns
Promise
<Response
>
Defined in
projects/utilities/packages/fetch/src/lib/fetch.ts:29
▸ fetch(url
, options
, type
): Promise
<Response
>
Parameters
Name | Type |
---|---|
url | string | URL |
options | RequestOptions |
type | Result |
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
Name | Type |
---|---|
url | string | URL |
options | RequestOptions |
type | FetchResultTypes |
Returns
Promise
<Response
| Blob
| Buffer
| string
| R
>