Files
upload-gltf/lib/client-types.ts
T
2026-04-14 14:27:50 +02:00

24 lines
606 B
TypeScript

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