Skip to content

Commit

Permalink
chore: add openapi-ts and hey-api/client-fetch (#47)
Browse files Browse the repository at this point in the history
* chore: add openapi-ts and hey-api/client-fetch

* chore: replace interfaces
  • Loading branch information
peppescg authored Jan 11, 2025
1 parent 44ae811 commit fb5ebf5
Show file tree
Hide file tree
Showing 25 changed files with 1,138 additions and 188 deletions.
18 changes: 18 additions & 0 deletions openapi-ts.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineConfig } from "@hey-api/openapi-ts";

export default defineConfig({
client: "@hey-api/client-fetch",
input: "src/api/openapi.json",
output: {
format: "prettier",
path: "./src/api/generated",
lint: "eslint",
},
plugins: [
"@hey-api/sdk",
{
enums: "typescript",
name: "@hey-api/typescript",
},
],
});
Loading

0 comments on commit fb5ebf5

Please sign in to comment.