type-fest 2.15.0 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/jsonify.d.ts +1 -1
package/package.json
CHANGED
package/source/jsonify.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ type Jsonify<T> =
|
|
|
66
66
|
// Check if there are any non-JSONable types represented in the union.
|
|
67
67
|
// Note: The use of tuples in this first condition side-steps distributive conditional types
|
|
68
68
|
// (see https://github.com/microsoft/TypeScript/issues/29368#issuecomment-453529532)
|
|
69
|
-
[Extract<T, NotJsonable |
|
|
69
|
+
[Extract<T, NotJsonable | bigint>] extends [never]
|
|
70
70
|
? T extends PositiveInfinity | NegativeInfinity ? null
|
|
71
71
|
: T extends JsonPrimitive
|
|
72
72
|
? T // Primitive is acceptable
|