@nexim/upload-types
Version:
TypeScript types and interfaces for Nexim Media Upload Service, including image preset configurations and file handling types
16 lines (10 loc) • 619 B
Markdown
[@nexim/upload-types](../README.md) / FileDetail
# Type Alias: FileDetail
> **FileDetail** = `object` & \{ `type`: `"file"`; \} \| \{ `type`: `"image"`; `variants`: `string`[]; \}
Details about an uploaded file stored in the system.
Includes common fields and type-specific fields using a discriminated union.
## Type declaration
| Name | Type | Description |
| ------------- | -------- | --------------------------------------- |
| `description` | `string` | Description of the file for maintenance |
| `userId` | `string` | ID of the user who uploaded the file |