I want to deconstruct an object using the componen...
# announcements
n
I want to deconstruct an object using the component1, component2… methods. But, I want to do so inside a generic function, so I don’t know what the concrete type of the value is. Is there a way to do this? Is there a way to constrain the type parameter of the function to have at least n components for destructuring?