isaacscript-common 31.2.0 → 31.2.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.
@@ -16995,7 +16995,7 @@ export declare type TupleWithLengthBetween<T, MinLength extends number, MaxLengt
16995
16995
  * For example, `TupleWithMaxLength<string, 3>` will allow string tuples of size 0, 1, 2, or 3.
16996
16996
  */
16997
16997
  export declare type TupleWithMaxLength<T, MaxLength extends number> = (T[] | readonly T[]) & {
16998
- length: TupleWithLengthBetween<T, 0, MaxLength>;
16998
+ length: Range<0, MaxLength>;
16999
16999
  };
17000
17000
 
17001
17001
  /**
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 31.2.0
3
+ isaacscript-common 31.2.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -1,10 +1,10 @@
1
- import type { TupleWithLengthBetween } from "./TupleWithLengthBetween";
1
+ import type { Range } from "./Range";
2
2
  /**
3
3
  * Helper type that validates that a tuple does not have a length greater than N.
4
4
  *
5
5
  * For example, `TupleWithMaxLength<string, 3>` will allow string tuples of size 0, 1, 2, or 3.
6
6
  */
7
7
  export type TupleWithMaxLength<T, MaxLength extends number> = (T[] | readonly T[]) & {
8
- length: TupleWithLengthBetween<T, 0, MaxLength>;
8
+ length: Range<0, MaxLength>;
9
9
  };
10
10
  //# sourceMappingURL=TupleWithMaxLength.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TupleWithMaxLength.d.ts","sourceRoot":"","sources":["../../../src/types/TupleWithMaxLength.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,EAAE,SAAS,SAAS,MAAM,IAAI,CAC1D,CAAC,EAAE,GACH,SAAS,CAAC,EAAE,CACf,GAAG;IACF,MAAM,EAAE,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;CACjD,CAAC"}
1
+ {"version":3,"file":"TupleWithMaxLength.d.ts","sourceRoot":"","sources":["../../../src/types/TupleWithMaxLength.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,EAAE,SAAS,SAAS,MAAM,IAAI,CAC1D,CAAC,EAAE,GACH,SAAS,CAAC,EAAE,CACf,GAAG;IACF,MAAM,EAAE,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;CAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "31.2.0",
3
+ "version": "31.2.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -1,4 +1,4 @@
1
- import type { TupleWithLengthBetween } from "./TupleWithLengthBetween";
1
+ import type { Range } from "./Range";
2
2
 
3
3
  /**
4
4
  * Helper type that validates that a tuple does not have a length greater than N.
@@ -9,5 +9,5 @@ export type TupleWithMaxLength<T, MaxLength extends number> = (
9
9
  | T[]
10
10
  | readonly T[]
11
11
  ) & {
12
- length: TupleWithLengthBetween<T, 0, MaxLength>;
12
+ length: Range<0, MaxLength>;
13
13
  };