Readonly[toStatic Readonly[species]Gets the raw Response instance instead of parsing the response
data.
If you want to parse the response body but still get the Response
instance, you can use ().
👋 Getting the wrong TypeScript type for Response?
Try setting "moduleResolution": "NodeNext" or add "lib": ["DOM"]
to your tsconfig.json.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: null | () => voidThe callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Gets the parsed response data and the raw Response instance.
If you just want to get the raw Response instance without parsing it,
you can use ().
👋 Getting the wrong TypeScript type for Response?
Try setting "moduleResolution": "NodeNext" or add "lib": ["DOM"]
to your tsconfig.json.
StaticallStaticallStaticanyThe any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
An array or iterable of Promises.
A new Promise.
The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
A new Promise.
StaticraceStaticrejectCreates a new rejected promise for the provided reason.
Optionalreason: anyThe reason the promise was rejected.
A new rejected Promise.
StaticresolveCreates a new resolved promise.
A resolved promise.
A subclass of
Promiseproviding additional helper methods for interacting with the SDK.