DEV Community

Discussion on: A Deep Dive into the satisfies operator in Typescript

Collapse
 
fyodorio profile image
Fyodor

That’s really awesome. The only problem is that we’ve got another way of creating debugging nightmares with this new approach 😅 imo, that’s the main issue with JS/TS — so many ways to implement [practically] the same stuff.

Collapse
 
brense profile image
Rense Bakker

Debugging nightmares because of satisfies operator? Please elaborate? Satisfies allows you to use a narrower type, which is better for debugging last time I checked?

Collapse
 
fyodorio profile image
Fyodor

Yes, edge cases in obscure type inference is one of the major sources of time-eating debuggin in larger TS apps. For simple cases that's quite straightforward, of course, I agree with you here.