s2cfgtojson 2.2.13 → 2.2.14
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/Struct.test.mts +4 -1
- package/enums.mts +21 -6
- package/package.json +1 -1
package/Struct.test.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, test, expect } from "vitest";
|
|
2
|
-
import { Struct } from "./Struct.mjs";
|
|
2
|
+
import { ERank, Struct } from "./Struct.mjs";
|
|
3
3
|
|
|
4
4
|
class ChimeraHPFix extends Struct {
|
|
5
5
|
_id = "ChimeraHPFix";
|
|
@@ -209,3 +209,6 @@ struct.end`;
|
|
|
209
209
|
});
|
|
210
210
|
});
|
|
211
211
|
});
|
|
212
|
+
|
|
213
|
+
// noinspection JSUnusedLocalSymbols
|
|
214
|
+
const MyRank: ERank = "ERank::Experienced, ERank::Veteran, ERank::Master";
|
package/enums.mts
CHANGED
|
@@ -1605,13 +1605,28 @@ export type ERadiationPreset = `ERadiationPreset::${
|
|
|
1605
1605
|
| "Strong"
|
|
1606
1606
|
| "Topaz"}`;
|
|
1607
1607
|
|
|
1608
|
-
|
|
1609
|
-
|
|
1608
|
+
type Newbie = "ERank::Newbie";
|
|
1609
|
+
type Experienced = "ERank::Experienced";
|
|
1610
|
+
type Veteran = "ERank::Veteran";
|
|
1611
|
+
type Master = "ERank::Master";
|
|
1612
|
+
type Permutations2<A, B> = A extends string
|
|
1613
|
+
? B extends string
|
|
1614
|
+
? A | B | `${A}, ${B}`
|
|
1615
|
+
: A
|
|
1616
|
+
: never;
|
|
1617
|
+
|
|
1618
|
+
type Permutations3<A, B, C> = A extends string
|
|
1619
|
+
? B extends string
|
|
1620
|
+
? C extends string
|
|
1621
|
+
? Permutations2<A, B> | Permutations2<B, C> | `${A}, ${B}, ${C}`
|
|
1622
|
+
: Permutations2<A, B>
|
|
1623
|
+
: A
|
|
1624
|
+
: never;
|
|
1625
|
+
|
|
1610
1626
|
export type ERank =
|
|
1611
|
-
|
|
|
1612
|
-
|
|
|
1613
|
-
| `${
|
|
1614
|
-
| `${_ERank}, ${_ERank}, ${_ERank}, ${_ERank}`;
|
|
1627
|
+
| Permutations3<Newbie, Experienced, Veteran>
|
|
1628
|
+
| Permutations3<Experienced, Veteran, Master>
|
|
1629
|
+
| `${Newbie}, ${Experienced}, ${Veteran}, ${Master}`;
|
|
1615
1630
|
|
|
1616
1631
|
export type ERegion = `ERegion::${
|
|
1617
1632
|
| "Bolota"
|