Files
vikunja/frontend/openapi-ts.config.ts

20 lines
399 B
TypeScript

import {defineConfig} from '@hey-api/openapi-ts'
const input = process.env.VIKUNJA_OPENAPI_INPUT
if (!input) {
throw new Error('VIKUNJA_OPENAPI_INPUT must point to the generated temporary spec')
}
export default defineConfig({
input,
output: 'src/client/generated',
plugins: [
'@hey-api/typescript',
'@hey-api/sdk',
{
name: '@hey-api/client-fetch',
throwOnError: true,
},
],
})