UNPKG

buena-typescript-sdk

Version:

Official TypeScript SDK for Buena.ai API - LinkedIn automation and lead management

22 lines (18 loc) 572 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ export function isReadableStream<T = Uint8Array>( val: unknown, ): val is ReadableStream<T> { if (typeof val !== "object" || val === null) { return false; } // Check for the presence of methods specific to ReadableStream const stream = val as ReadableStream<Uint8Array>; // ReadableStream has methods like getReader, cancel, and tee return ( typeof stream.getReader === "function" && typeof stream.cancel === "function" && typeof stream.tee === "function" ); }