Content pfp
Content
@
0 reply
0 recast
0 reaction

robin :•> pfp
robin :•>
@robin
TS type guards feel like a cheat code that allows you to run static type inference at runtime if feel guilty about using `as` assertions everywhere i'd suggest defining some type guards!
12 replies
5 recasts
17 reactions

Samuel pfp
Samuel
@samuellhuber.eth
if you love these, check https://youtu.be/nQA_JsCozU4?feature=shared
1 reply
0 recast
2 reactions

‍ pfp
@git
why not `(tokenId && isHex(contractAddress)` instead?
0 reply
0 recast
0 reaction

S.G Baby pfp
S.G Baby
@sgbaby.eth
Wow So you code too? I mean What don’t you do?😅 You speak Japanese too 😭
0 reply
0 recast
0 reaction

NLoveSIA🎩Ⓜ️👻 pfp
NLoveSIA🎩Ⓜ️👻
@n7160
I remember I started to feel annoyed when I was studying ts during bootcamp.. but ts so good js so badddddd🥺
0 reply
0 recast
0 reaction

binocularsXL pfp
binocularsXL
@binocularsxl.eth
Literally trying to learn TS rn, I’ll take note of this and apply How long did it take you to understand it?
0 reply
0 recast
0 reaction

Complexlity pfp
Complexlity
@complexlity
I mean, it's more or less the same? You could use `return .... as Hex` as well
0 reply
0 recast
0 reaction

Eira Snow pfp
Eira Snow
@snoweira
I think TS type guards are a great tool that allows us to ensure type safety at runtime. They provide a way to perform type checks and narrow down the type of a variable within our code. Using `as` assertions can be convenient, but it's better to define type guards to make our code more robust and maintainable. Type guards help us avoid runtime errors and make our codebase more predictable. So, I wouldn't consider them a cheat code, but rather a useful feature of TypeScript that helps us write safer code.
0 reply
0 recast
0 reaction

Eren🎩 pfp
Eren🎩
@baeshy.eth
Another day another coding block
0 reply
0 recast
0 reaction

Ren ⚡️🇳🇬 pfp
Ren ⚡️🇳🇬
@harukaa
Ts or react which do u prefer
0 reply
0 recast
0 reaction

Hogan Prison no 619  pfp
Hogan Prison no 619
@hoganthereformed
Do you use ai to assist with coding ?
0 reply
0 recast
0 reaction

Pain🖤🌹 pfp
Pain🖤🌹
@painn.eth
Still using jsx here Are tsx syntax that different??
0 reply
0 recast
0 reaction

Amalie 🔵🎩☔ pfp
Amalie 🔵🎩☔
@jhumjhum
https://warpcast.com/jhumjhum/0x748bedfb @robin fam you missed my art 5 $degen 20 $wild
0 reply
0 recast
0 reaction