type ExampleTuple=[{name:'Alice',age:25},{name:'Bob',age:30}]
type FilteredTuple=TupleOmit<ExampleTuple,'age'> // = [{name:'Alice'},{name:'Bob'}]
type IncorrectType =Omit<ExampleTuple[number],'age'>// = {name:'Alice'|'Bob'} This is not the desired type
I am in need of a generic type that can remove a specific field from each item in a tuple. How can I create the generic type TupleOmit
?