You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to ask what is the equivalent way (if there is one) to declare a type with specific required property and unlimited optional properties as the following typescript code:
I wanted to ask what is the equivalent way (if there is one) to declare a type with specific required property and unlimited optional properties as the following typescript code:
For example:
Example of how it works in TypeScript
https://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgEJwM4QKLmGAT2QG8AoZZYAEwC5kMwpQBzAblIF9TTRJZEUuMPiIQAHpBBUMaTDjyES5ZAG0A1hAJ0GTEMwC62xi3ZdSCAPYgGyOHSEjkAXiUVqdAOQAjADZwPADTKMBYWnl5wUB6c3JbWYMhe9gpELmQUIWHI3pHRHEA
I use it for TypeScript "Type Checking JavaScript Files" and I hope that the solution is also fit in this case.
Thanks!
The text was updated successfully, but these errors were encountered: