fork of hey-api/openapi-ts because I need some additional things

Merge pull request #2865 from wn-mitch/main

Minor transformer docs update

authored by

Lubos and committed by
GitHub
e0b09d01 0a49c3ad

+23
+5
.changeset/old-pianos-beg.md
··· 1 + --- 2 + "@docs/openapi-ts": patch 3 + --- 4 + 5 + docs: add bigint section to transformers
+18
docs/openapi-ts/plugins/transformers.md
··· 81 81 82 82 This will generate types that use `Date` instead of `string` and appropriate transformers. Note that third-party date packages are not supported at the moment. 83 83 84 + ## BigInt 85 + 86 + 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. 87 + 88 + ```js 89 + export default { 90 + input: 'hey-api/backend', // sign up at app.heyapi.dev 91 + output: 'src/client', 92 + plugins: [ 93 + // ...other plugins 94 + { 95 + bigint: true, // [!code ++] 96 + name: '@hey-api/transformers', 97 + }, 98 + ], 99 + }; 100 + ``` 101 + 84 102 ## Example 85 103 86 104 A generated response transformer might look something like this. Please note the example has been edited for brevity.