then<
TResult1 = UsageMetadata | undefined,
TResult2 = never
>(
onfulfilled: (value: UsageMetadata| Name | Type | Description |
|---|---|---|
onfulfilled | (value: UsageMetadata | undefined) => TResult1 | PromiseLike<TResult1> | null | |
onrejected | (reason: unknown) => TResult2 | PromiseLike<TResult2> | null |
Attaches callbacks for the resolution and/or rejection of the Promise.
The callback to execute when the Promise is resolved.
The callback to execute when the Promise is rejected.