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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-fest",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
@@ -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 | BigInt>] extends [never]
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