···11+---
22+"@docs/openapi-ts": patch
33+---
44+55+docs: add bigint section to transformers
+18
docs/openapi-ts/plugins/transformers.md
···81818282This will generate types that use `Date` instead of `string` and appropriate transformers. Note that third-party date packages are not supported at the moment.
83838484+## BigInt
8585+8686+The `@hey-api/transformers` plugin will natively type all BigInts as `bigint` instead of `number`, which can affect arithmetic operations if your application previously used `number`. To force BigInts to be numbers, use the `bigint` configuration option.
8787+8888+```js
8989+export default {
9090+ input: 'hey-api/backend', // sign up at app.heyapi.dev
9191+ output: 'src/client',
9292+ plugins: [
9393+ // ...other plugins
9494+ {
9595+ bigint: true, // [!code ++]
9696+ name: '@hey-api/transformers',
9797+ },
9898+ ],
9999+};
100100+```
101101+84102## Example
8510386104A generated response transformer might look something like this. Please note the example has been edited for brevity.