zerobyte/openapi-ts.config.ts
Nico 12d0eda6ef
feat: dev panel (#489)
* feat: dev panel

* chore: fix typing issue
2026-02-09 22:04:21 +01:00

15 lines
474 B
TypeScript

import { defaultPlugins, defineConfig } from "@hey-api/openapi-ts";
import { config } from "./app/server/core/config.js";
export default defineConfig({
input: `http://${config.serverIp}:3000/api/v1/openapi.json`,
output: {
path: "./app/client/api-client",
header: [
"// @ts-nocheck",
"// This file is auto-generated by @hey-api/openapi-ts",
],
postProcess: ["oxfmt"],
},
plugins: [...defaultPlugins, "@tanstack/react-query", "@hey-api/client-fetch"],
});