Skip to main content
Module

x/openai/core.ts>APIPromise#catch

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method APIPromise.prototype.catch
import { APIPromise } from "https://deno.land/x/openai@v4.25.0/core.ts";

Type Parameters

optional
TResult = never

Parameters

optional
onrejected: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null

Returns

Promise<T | TResult>