Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/uploads.ts>isBlobLike

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
variable isBlobLike
import { isBlobLike } from "https://deno.land/x/openai@v4.69.0/uploads.ts";

The BlobLike type omits arrayBuffer() because @types/node-fetch@^2.6.4 lacks it; but this check adds the arrayBuffer() method type because it is available and used at runtime

type

(value: any) => value is BlobLike & { arrayBuffer(): Promise<ArrayBuffer>; }