- Preparing search index...
- The search index is not available
Toolkit
- fetchWithLog<T>(client: string, fn: (() => Promise<Response>)): Promise<T>
-
Parameters
-
client: string
-
fn: (() => Promise<Response>)
-
- (): Promise<Response>
-
Returns Promise<Response>
Returns Promise<T>
Runs a fetch and parses the JSON body. Any failure, including an error status, is thrown as a
RequestError.