Files
full-stack-fastapi-template/frontend/openapi-ts.config.ts

16 lines
317 B
TypeScript
Raw Normal View History

import { defineConfig } from "@hey-api/openapi-ts"
export default defineConfig({
client: "legacy/axios",
input: "./openapi.json",
output: "./src/client",
// exportSchemas: true,
plugins: [
{
name: "@hey-api/sdk",
// NOTE: this doesn't allow tree-shaking
asClass: true,
},
],
})