✨ Migrate to latest openapi-ts (#1430)
This commit is contained in:
15
frontend/openapi-ts.config.ts
Normal file
15
frontend/openapi-ts.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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,
|
||||
},
|
||||
],
|
||||
})
|
Reference in New Issue
Block a user