How do i properly write typings for generic

I have array which contains connected property class or separated property class. SeparetedProperty class needs generic of what type this property contains. But when i try to type it as unkown, because it can contain any type it throws error when i try to add property i cant really provide playground cuz it have lot of dependincies
No description
No description
3 Replies
Tverksaac 2.0
Tverksaac 2.0OP•2mo ago
🙂
alihsaas
alihsaas•2mo ago
Can you send a playground link
Tverksaac 2.0
Tverksaac 2.0OP•2mo ago
it happens because of ExtractKeys<> returns a lot of keys but ConnectedStat is just one, but i dont really understand how to type array to contain every possible value

Did you find this page helpful?