Skip to content

Commit

Permalink
chore(docs): update migrating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanshatford committed Apr 16, 2024
1 parent 2f50257 commit 90c383a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/openapi-ts/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ This config option is deprecated and will be removed.

## v0.39.0

### Prefer `unknown` over `any`

Types that cannot be determined will now be generated as `unknown` instead of `any`.

```js
200: any // [!code --]
200: unknown // [!code ++]
```

### Single `enums.gen.ts` file

Enums are now exported from a separate file. If you use imports from `models.ts`, you can change them to `enums.gen.ts`.
Expand Down

0 comments on commit 90c383a

Please sign in to comment.