Files
LTX-DeskWEB/frontend/lib/generation-input.ts
T

7 lines
301 B
TypeScript

export async function prepareGenerationInput(inputPath: string | null | undefined): Promise<string | null> {
if (!inputPath) return null
const result = await window.electronAPI.prepareGenerationInput({ path: inputPath })
if (!result.success) throw new Error(result.error)
return result.path
}