UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

25 lines 718 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export const blobLikeSchema = z.custom(isBlobLike, { message: "expected a Blob, File or Blob-like object", fatal: true, }); export function isBlobLike(val) { if (val instanceof Blob) { return true; } if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) { return false; } const name = val[Symbol.toStringTag]; if (typeof name !== "string") { return false; } if (name !== "Blob" && name !== "File") { return false; } return "stream" in val && typeof val.stream === "function"; } //# sourceMappingURL=blobs.js.map