type-fest 3.5.3 → 3.5.5

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": "3.5.3",
3
+ "version": "3.5.5",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
package/source/basic.d.ts CHANGED
@@ -26,7 +26,7 @@ Matches a JSON array.
26
26
 
27
27
  @category JSON
28
28
  */
29
- export type JsonArray = JsonValue[];
29
+ export type JsonArray = JsonValue[] | readonly JsonValue[];
30
30
 
31
31
  /**
32
32
  Matches any valid JSON primitive value.
@@ -240,7 +240,7 @@ declare namespace PackageJson {
240
240
  Import map entries of a module, optionally with conditions.
241
241
  */
242
242
  export type Imports = { // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
243
- [key: `#${string}`]: string | {[key in ExportCondition]: Exports};
243
+ [key: `#${string}`]: string | {[key in ExportCondition]?: Exports};
244
244
  };
245
245
 
246
246
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions