s2cfgtojson 7.0.3 → 7.0.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/Struct.mts +1 -1
- package/package.json +1 -1
- package/utility-types.mts +3 -1
package/Struct.mts
CHANGED
|
@@ -361,7 +361,7 @@ export class Refs implements DefaultEntries {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
const structHeadRegex = new RegExp(
|
|
364
|
-
|
|
364
|
+
`^\\s*((.*)\\s*:)?\\s*struct\\.begin\\s*({\\s*((${KEYWORDS.join("|")})\\s*(=.+)?)\\s*})?`,
|
|
365
365
|
);
|
|
366
366
|
|
|
367
367
|
function parseHead(line: string, index: number): Struct {
|
package/package.json
CHANGED
package/utility-types.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { GetStructType } from "./Struct.mts";
|
|
2
|
+
|
|
1
3
|
export type WeatherSelection =
|
|
2
4
|
| "CalmBeforeEmission"
|
|
3
5
|
| "Clearly"
|
|
@@ -47,7 +49,7 @@ export type Permutations3<A, B, C> = A extends string
|
|
|
47
49
|
: Permutations2<A, B>
|
|
48
50
|
: A
|
|
49
51
|
: never;
|
|
50
|
-
export type StringArray = string[]
|
|
52
|
+
export type StringArray = GetStructType<string[]>;
|
|
51
53
|
export type Reaction = "Enemy" | "Disaffection" | "Neutral" | "Friend" | "Self";
|
|
52
54
|
export type Archetype =
|
|
53
55
|
| "Bayun"
|