Content
@
0 reply
0 recast
0 reaction
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
8 reactions
@git
viem exports this iirc. Found out cause my editor auto-imported it once
1 reply
0 recast
0 reaction
Nick Cherry
@nickcherry
Nice! I think type-fest also exports something similar https://github.com/sindresorhus/type-fest/blob/main/source/simplify.d.ts
0 reply
0 recast
0 reaction