You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+82-3Lines changed: 82 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,15 @@ npm i -D oas-gen-ts
14
14
15
15
Create oas.config.js or oas.json in the root directory of the project, and refer to [cosmiconfig](https://www.npmjs.com/package/cosmiconfig) for the file name specification.
16
16
17
+
The search order for configuration files is `oas.config.cjs`, `oas.config.js`, `oas.json`.
18
+
17
19
```ts
18
-
// oas.config.mjs
20
+
// oas.config.cjs
19
21
exportdefaultdefineConfig({
20
22
axiosImport: `import { axios } from '@/util/axios';`,
0 commit comments