s2cfgtojson 7.0.2 → 7.0.4
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 +5 -1
- package/package.json +1 -1
- package/utility-types.mts +3 -1
package/Struct.mts
CHANGED
|
@@ -131,7 +131,11 @@ export class Struct {
|
|
|
131
131
|
"Cannot remove node from non-patch struct. Use fork() first.",
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
this[key]
|
|
134
|
+
if (this[key] instanceof Struct) {
|
|
135
|
+
this[key].__internal__.removenode = true;
|
|
136
|
+
} else {
|
|
137
|
+
this[key] = REMOVE_NODE as any;
|
|
138
|
+
}
|
|
135
139
|
return this;
|
|
136
140
|
}
|
|
137
141
|
|
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"
|