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
robin :β’>
@robin
this dude is a gem
0 reply
0 recast
1 reaction
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
1 reaction
ββ
@git
viem exports this iirc. Found out cause my editor auto-imported it once
1 reply
0 recast
0 reaction
Greg
@greg
π«¨π«¨
0 reply
0 recast
0 reaction
Phil Cockfield
@pjc
Oh, nice!!! Thanks.
0 reply
0 recast
0 reaction