Skip to content

Commit fb5ebf5

Browse files
authored
chore: add openapi-ts and hey-api/client-fetch (#47)
* chore: add openapi-ts and hey-api/client-fetch * chore: replace interfaces
1 parent 44ae811 commit fb5ebf5

25 files changed

+1138
-188
lines changed

openapi-ts.config.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from "@hey-api/openapi-ts";
2+
3+
export default defineConfig({
4+
client: "@hey-api/client-fetch",
5+
input: "src/api/openapi.json",
6+
output: {
7+
format: "prettier",
8+
path: "./src/api/generated",
9+
lint: "eslint",
10+
},
11+
plugins: [
12+
"@hey-api/sdk",
13+
{
14+
enums: "typescript",
15+
name: "@hey-api/typescript",
16+
},
17+
],
18+
});

0 commit comments

Comments
 (0)