Content pfp
Content
@
0 reply
0 recast
2 reactions

Nicholas Charriere pfp
Nicholas Charriere
@pushix
As promised, I'm going to start sharing some TypeScript and coding tips to maintain my streak. Today showing off the nifty generic `Pick`:
7 replies
1 recast
57 reactions

Arti Villa | IRL at Devcon⟠⟠ pfp
Arti Villa | IRL at Devcon⟠⟠
@artivilla.eth
There is so little I know about typescript. Would love if you can share your commentary as well. I find the concise syntax confusing. like types vs interfaces? also what are your best practices.
1 reply
0 recast
0 reaction

Nicholas Charriere pfp
Nicholas Charriere
@pushix
I find the concise syntax confusing as well, I use the first or Pick. Type vs interface.. long debate there, good article about it here: https://blog.logrocket.com/types-vs-interfaces-typescript/ My personal opinion: always use type. I don't like declaration merging, and I find intersection/union more intuitive than "extend"
0 reply
0 recast
1 reaction