Content pfp
Content
@
0 reply
0 recast
0 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
A handy type for making types with several layers of inheritance and/or unions more readable. Would be great if VSCode's Typescript plugin added a UI toggle, so you could choose to see the short or expanded version of the type. https://www.youtube.com/watch?v=2lCCKiWGlC0
5 replies
1 recast
4 reactions

typeof.eth 🔵 pfp
typeof.eth 🔵
@typeof.eth
type-fest has a Simplify<T> util that does this, as well as a number of other useful type type utils. Worth checking out 🤙
0 reply
0 recast
2 reactions