Files
upload-gltf/lib/client-types.ts
T
2026-04-27 11:07:16 +02:00

29 lines
764 B
TypeScript

// ---------------------------------------------------------------------------
// Client-side types — used by components and hooks (no Node.js Buffer)
// ---------------------------------------------------------------------------
type FileStatus = 'pending' | 'uploading' | 'success' | 'error'
export interface TextureFile {
name: string
file: File
}
type DriveStatus = 'pending' | 'uploading' | 'success' | 'error' | 'skipped'
export interface FolderEntry {
folderName: string
modelFile: File
textures: TextureFile[]
status: FileStatus
progress: number
error?: string
filename?: string
modelUrl?: string
assetUrls?: Record<string, string>
viewerOpen?: boolean
warnings: string[]
driveStatus?: DriveStatus
driveError?: string
}