s2cfgtojson 3.2.0 → 3.2.2

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 CHANGED
@@ -318,4 +318,6 @@ struct.end`;
318
318
  // noinspection JSUnusedLocalSymbols
319
319
  const MyRank: ERank = "ERank::Experienced, ERank::Veteran, ERank::Master";
320
320
  // noinspection BadExpressionStatementJS
321
- (({}) as ArmorPrototype).Protection;
321
+ (({}) as ArmorPrototype["MeshGenerator"]).forEach(([_k, e]) => {
322
+ e.Cost *= 2;
323
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",
package/types.mts CHANGED
@@ -107,7 +107,7 @@ export interface DefaultEntries {
107
107
 
108
108
  export type GetStructType<In> =
109
109
  In extends Array<any>
110
- ? Struct & { [key in number]: GetStructType<In[key]> }
110
+ ? Struct & { [key: `${number}`]: GetStructType<In[typeof key]> }
111
111
  : In extends Record<any, any>
112
112
  ? Struct & { [key in keyof In]: GetStructType<In[key]> }
113
113
  : In extends string