diff --git a/app/src/types/index.ts b/app/src/types/index.ts index 0371cd6a..00ab74fc 100644 --- a/app/src/types/index.ts +++ b/app/src/types/index.ts @@ -1,24 +1,13 @@ -// Shared TypeScript types for the voicebox application +// Shared app-level type aliases. +// Keep these aliases in sync with the generated API contract types. +import type { + GenerationResponse, + VoiceProfileResponse, +} from '@/lib/api/types'; -export interface VoiceProfile { - id: string; - name: string; - description?: string; - language: string; - createdAt: string; - updatedAt: string; -} +export type VoiceProfile = VoiceProfileResponse; -export interface Generation { - id: string; - profileId: string; - text: string; - language: string; - audioPath: string; - duration: number; - seed?: number; - createdAt: string; -} +export type Generation = GenerationResponse; export interface ServerConfig { url: string; diff --git a/app/tsconfig.json b/app/tsconfig.json index 2ec9c540..e3f75eca 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -19,6 +19,7 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, + "ignoreDeprecations": "6.0", /* Path aliases */ "baseUrl": ".",