s2cfgtojson 7.0.6 → 7.0.7

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.
Files changed (2) hide show
  1. package/Struct.mts +5 -1
  2. package/package.json +1 -1
package/Struct.mts CHANGED
@@ -32,7 +32,11 @@ export type GetStructType<In> =
32
32
  In extends Array<any>
33
33
  ? Struct & { [key: `${number}`]: GetStructType<In[typeof key]> }
34
34
  : In extends Record<any, any>
35
- ? Struct & { [key in keyof In]: GetStructType<In[key]> }
35
+ ? Struct & {
36
+ [key in keyof In]: key extends "__internal__"
37
+ ? Refs
38
+ : GetStructType<In[key]>;
39
+ }
36
40
  : In extends string
37
41
  ? In
38
42
  : In extends number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "7.0.6",
3
+ "version": "7.0.7",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",