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.
- package/Struct.mts +5 -1
- 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 & {
|
|
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
|