DEV Community

Discussion on: Why so much hype over Typescript ?

brieucp profile image
brieucp Author • Edited on

Ok so apparently t is Foo is not JSDoc compatible (if we need to use JSDoc cli). But vs code understand it right.
So you probably won this point too ;) but rewriting your function to avoid using type predicate is easy