diff options
Diffstat (limited to 'orval.config.ts')
| -rw-r--r-- | orval.config.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/orval.config.ts b/orval.config.ts new file mode 100644 index 0000000..7151ef3 --- /dev/null +++ b/orval.config.ts @@ -0,0 +1,28 @@ +import { defineConfig } from 'orval'; + +export default defineConfig({ + pantry: { + input: './src/conf/openapi-pantry.yaml', + output: { + mode: "tags", + workspace: "./src", + target: "./util/pantry.ts", + schemas: "./model", + client: "react-query", + prettier: true, + override: { + useDates: true, + mutator: { + path: "./conf/mutator.ts", + name: "useMutator", + }, + query: { + useQuery: true, + }, + }, + }, + hooks: { + afterAllFilesWrite: 'prettier --write', + }, + }, +});
\ No newline at end of file |
