isaacscript-common 21.1.0 → 21.1.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/dist/index.d.ts CHANGED
@@ -12541,7 +12541,7 @@ export { ReadonlyMap_2 as ReadonlyMap }
12541
12541
 
12542
12542
  declare interface ReadonlyMapConstructor {
12543
12543
  new (): ReadonlyMap<any, any>;
12544
- new <K, V>(entries?: ReadonlyArray<readonly [K, V]> | null): ReadonlyMap<K, V>;
12544
+ new <K, V>(entries?: ReadonlyArray<readonly [K, V]> | Iterable<readonly [K, V]> | null): ReadonlyMap<K, V>;
12545
12545
  readonly prototype: ReadonlyMap<any, any>;
12546
12546
  }
12547
12547
 
@@ -12550,7 +12550,7 @@ declare const ReadonlySet_2: ReadonlySetConstructor;
12550
12550
  export { ReadonlySet_2 as ReadonlySet }
12551
12551
 
12552
12552
  declare interface ReadonlySetConstructor {
12553
- new <T = any>(values?: readonly T[] | null): ReadonlySet<T>;
12553
+ new <T = any>(values?: readonly T[] | Iterable<T> | null): ReadonlySet<T>;
12554
12554
  readonly prototype: ReadonlySet<any>;
12555
12555
  }
12556
12556
 
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 21.1.0
3
+ isaacscript-common 21.1.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -1,6 +1,6 @@
1
1
  interface ReadonlyMapConstructor {
2
2
  new (): ReadonlyMap<any, any>;
3
- new <K, V>(entries?: ReadonlyArray<readonly [K, V]> | null): ReadonlyMap<K, V>;
3
+ new <K, V>(entries?: ReadonlyArray<readonly [K, V]> | Iterable<readonly [K, V]> | null): ReadonlyMap<K, V>;
4
4
  readonly prototype: ReadonlyMap<any, any>;
5
5
  }
6
6
  /** An alias for the `Map` constructor that returns a read-only map. */
@@ -1 +1 @@
1
- {"version":3,"file":"ReadonlyMap.d.ts","sourceRoot":"","sources":["../../../src/types/ReadonlyMap.ts"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,QAAQ,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,WAAW,CACtE,CAAC,EACD,CAAC,CACF,CAAC;IACF,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CAC3C;AAED,uEAAuE;AACvE,eAAO,MAAM,WAAW,wBAAgC,CAAC"}
1
+ {"version":3,"file":"ReadonlyMap.d.ts","sourceRoot":"","sources":["../../../src/types/ReadonlyMap.ts"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,QAAQ,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,EACP,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,GAC1E,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CAC3C;AAED,uEAAuE;AACvE,eAAO,MAAM,WAAW,wBAAgC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  interface ReadonlySetConstructor {
2
- new <T = any>(values?: readonly T[] | null): ReadonlySet<T>;
2
+ new <T = any>(values?: readonly T[] | Iterable<T> | null): ReadonlySet<T>;
3
3
  readonly prototype: ReadonlySet<any>;
4
4
  }
5
5
  /** An alias for the `Set` constructor that returns a read-only set. */
@@ -1 +1 @@
1
- {"version":3,"file":"ReadonlySet.d.ts","sourceRoot":"","sources":["../../../src/types/ReadonlySet.ts"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,KAAK,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;CACtC;AAED,uEAAuE;AACvE,eAAO,MAAM,WAAW,wBAAgC,CAAC"}
1
+ {"version":3,"file":"ReadonlySet.d.ts","sourceRoot":"","sources":["../../../src/types/ReadonlySet.ts"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,KAAK,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAC1E,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;CACtC;AAED,uEAAuE;AACvE,eAAO,MAAM,WAAW,wBAAgC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "21.1.0",
3
+ "version": "21.1.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -2,10 +2,9 @@
2
2
 
3
3
  interface ReadonlyMapConstructor {
4
4
  new (): ReadonlyMap<any, any>;
5
- new <K, V>(entries?: ReadonlyArray<readonly [K, V]> | null): ReadonlyMap<
6
- K,
7
- V
8
- >;
5
+ new <K, V>(
6
+ entries?: ReadonlyArray<readonly [K, V]> | Iterable<readonly [K, V]> | null,
7
+ ): ReadonlyMap<K, V>;
9
8
  readonly prototype: ReadonlyMap<any, any>;
10
9
  }
11
10
 
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
 
3
3
  interface ReadonlySetConstructor {
4
- new <T = any>(values?: readonly T[] | null): ReadonlySet<T>;
4
+ new <T = any>(values?: readonly T[] | Iterable<T> | null): ReadonlySet<T>;
5
5
  readonly prototype: ReadonlySet<any>;
6
6
  }
7
7