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
When `useBigInt` is set to `true`, a customized JSON serializer & deserializer is used that will preserve the precision of `bigint`'s, as opposed to the native `JSON.stringify` and `JSON.parse` function which converts `bigint`'s to number's losing precision.
406
+
407
+
When combining `useBigInt` with our serialization layer (`no-serde: false`), both the request and response properties that are marked as `long` and `bigint` in OpenAPI/Fern spec, will consistently be `bigint`'s.
408
+
However, when disabling the serialization layer (`no-serde: true`), they will be typed as `number | bigint`.
409
+
410
+
Here's an overview of what to expect from the generated types when combining `useBigInt` and `noSerde` with the following Fern definition:
0 commit comments