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

Function isFileLike

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

Source from the content-addressed store, hash-verified

490 typeof value.blob === "function";
491
492export const isFileLike = (value: any): value is FileLike =>
493 value != null &&
494 typeof value === "object" &&
495 typeof value.name === "string" &&
496 typeof value.lastModified === "number" &&
497 isBlobLike(value);
498
499/**
500 * The BlobLike type omits arrayBuffer() because @types/node-fetch@^2.6.4 lacks it; but this check

Callers 2

toFileFunction · 0.85
isUploadableFunction · 0.85

Calls 1

isBlobLikeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…