(value: unknown)
| 33 | * Checks if a value matches the full UserFile metadata shape. |
| 34 | */ |
| 35 | export function isUserFileWithMetadata(value: unknown): value is UserFile { |
| 36 | if (!isUserFile(value)) { |
| 37 | return false |
| 38 | } |
| 39 | |
| 40 | const candidate = value as Record<string, unknown> |
| 41 | |
| 42 | return typeof candidate.size === 'number' && typeof candidate.type === 'string' |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Finds storage keys for UserFile objects embedded in a value. |
no test coverage detected