MCPcopy Index your code
hub / github.com/simstudioai/sim / isFileParseResult

Function isFileParseResult

apps/sim/tools/file/parser.ts:30–36  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

28 typeof value.key === 'string'
29
30const isFileParseResult = (value: unknown): value is FileParseResult =>
31 isRecord(value) &&
32 typeof value.content === 'string' &&
33 typeof value.fileType === 'string' &&
34 typeof value.size === 'number' &&
35 typeof value.name === 'string' &&
36 typeof value.binary === 'boolean'
37
38const normalizeHeaders = (headers: FileParserInput['headers']): Record<string, string> => {
39 const transformed = transformTable(headers ?? null)

Callers 1

normalizeFileParseResultFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected