7 lines
301 B
TypeScript
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
|
|
}
|