Dailos R. DÍAZ LARA
banner
ddialar.bsky.social
Dailos R. DÍAZ LARA
@ddialar.bsky.social
👨🏻‍💻 #JavaScript / #TypeScript Developer 🇮🇨 @canariasjs co-founder and #JSDayCanarias co-organizer 💻 #NodeJS, #React, #Vitest, #NextJS and 💖 #GraphQL
My bet 😜
January 2, 2025 at 9:01 AM
The 10th challenge of the #adventoftypescript is done. Today has been the turn for enums which I don't specially like not for the language but how people use them.

Any way, just remember that if you want to avoid the verbose transpilation of an enum, use 'const' 😉
December 10, 2024 at 5:25 AM
OK... the fifth challenge of the #adventoftypescript is done and we start with an introduction to the type inference via generics.

Yeah, maybe this use case is not very useful but the inference of generics is really powerful.

#typeheroapp #adventoftypescript2024
December 5, 2024 at 6:27 AM
🤔 IMO los enums en #TypeScript o #JavaScript no son recomendables por el excesivo código que crean en la transpilación y porque pueden ser reemplazados por mapped objects o Union Types.

🔥 No obstante, la magia de TypeScript hace posible cosas tan guays como esta 👇
January 17, 2024 at 9:18 AM