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.
package/dist/index.rollup.d.ts
CHANGED
|
@@ -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:
|
|
16998
|
+
length: Range<0, MaxLength>;
|
|
16999
16999
|
};
|
|
17000
17000
|
|
|
17001
17001
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
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:
|
|
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,
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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:
|
|
12
|
+
length: Range<0, MaxLength>;
|
|
13
13
|
};
|