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
Since ts 2.1, we have mapped types that are very usefull. Pick is now included in the library, and allow to pick only some properties of a type T.
While Pick is usefull, it would be great to construct a type base on another type by omitting some properties, ie the opposite of Pick
Notably, it would allow to override some interfaces, eg :
interfaceFoo{name : string,age: number,id : string}// now we want the id as a number in a particular piece of code, along with the other propertiesinterfaceDifferentFooextendsOmit<Foo,"id">{id: number}
The text was updated successfully, but these errors were encountered:
First, thx a lot for the fantastic stuff 😄
Since ts 2.1, we have mapped types that are very usefull.
Pick is now included in the library, and allow to pick only some properties of a type T.
While Pick is usefull, it would be great to construct a type base on another type by omitting some properties, ie the opposite of Pick
Notably, it would allow to override some interfaces, eg :
The text was updated successfully, but these errors were encountered: