This subclass of Promise will resolve to an instantiated Page once the request completes.
It also implements AsyncIterable to allow auto-paginating iteration on an unawaited list call, eg:
for await (const item of client.items.list()) { console.log(item) }
class PagePromiseAPIPromise<PageClass>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 for only the rejection of the Promise.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Attaches callbacks for the resolution and/or rejection of the Promise.
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.
Gets the raw Response instance instead of parsing the response
Attaches a callback for only the rejection of the Promise.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
Attaches callbacks for the resolution and/or rejection of the Promise.
Gets the parsed response data and the raw Response instance.