MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / isBlobLike

Function isBlobLike

packages/core/src/v3/apiClient/core.ts:503–512  ·  view source on GitHub ↗
(
  value: any
)

Source from the content-addressed store, hash-verified

501 * adds the arrayBuffer() method type because it is available and used at runtime
502 */
503export const isBlobLike = (
504 value: any
505): value is BlobLike & { arrayBuffer(): Promise<ArrayBuffer> } =>
506 value != null &&
507 typeof value === "object" &&
508 typeof value.size === "number" &&
509 typeof value.type === "string" &&
510 typeof value.text === "function" &&
511 typeof value.slice === "function" &&
512 typeof value.arrayBuffer === "function";
513
514export const isFsReadStream = (value: any): value is Readable => value instanceof Readable;
515

Callers 3

addFormValueFunction · 0.85
getBytesFunction · 0.85
isFileLikeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…