(value: unknown)
| 28 | typeof value.key === 'string' |
| 29 | |
| 30 | const 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 | |
| 38 | const normalizeHeaders = (headers: FileParserInput['headers']): Record<string, string> => { |
| 39 | const transformed = transformTable(headers ?? null) |
no test coverage detected