debut refacto

This commit is contained in:
Tom Boullay
2026-04-14 14:18:40 +02:00
parent ab9685b6ee
commit e9ae6ffc41
13 changed files with 721 additions and 554 deletions
+37
View File
@@ -0,0 +1,37 @@
// ---------------------------------------------------------------------------
// Shared types
// ---------------------------------------------------------------------------
export interface ParsedFile {
filename: string
buffer: Buffer
isModel: boolean
textureName?: string
}
export type FileChange = 'new' | 'changed' | 'unchanged'
export interface FileDiff {
name: string
status: 'changed' | 'new' | 'deleted'
}
export interface RemoteFile {
name: string
sha: string
}
export type UploadResponse =
| {
success: true
folderName: string
filesCount: number
compressed: boolean
compressionError?: string
message: string
commitUrl?: string
}
| {
success: false
error: string
}