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

Function isUserFile

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

Source from the content-addressed store, hash-verified

19 Boolean(value) && typeof value === 'object'
20
21const isUserFile = (value: unknown): value is UserFile =>
22 isRecord(value) &&
23 typeof value.id === 'string' &&
24 typeof value.name === 'string' &&
25 typeof value.url === 'string' &&
26 typeof value.size === 'number' &&
27 typeof value.type === 'string' &&
28 typeof value.key === 'string'
29
30const isFileParseResult = (value: unknown): value is FileParseResult =>
31 isRecord(value) &&

Callers 1

normalizeFileParseResultFunction · 0.70

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected