Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / isFileReferenceArray

Function: isFileReferenceArray()

isFileReferenceArray(value): value is { filename: string; id: string; metadata?: { createdAt?: number; custom?: Record<string, unknown>; description?: string; duration?: number; height?: number; originalUrl?: string; prompt?: string; sourceModel?: string; tags?: string[]; thumbnailFileId?: string; width?: number }; mimeType: string; size: number }[]

Defined in: packages/fireflow-types/src/file/file-reference.ts:94

Parameters

value

unknown

Returns

value is { filename: string; id: string; metadata?: { createdAt?: number; custom?: Record<string, unknown>; description?: string; duration?: number; height?: number; originalUrl?: string; prompt?: string; sourceModel?: string; tags?: string[]; thumbnailFileId?: string; width?: number }; mimeType: string; size: number }[]

Licensed under BUSL-1.1