top | item 17895622

(no title)

MuppetMaster42 | 7 years ago

I'm the same. Anything I do, I make sure it's in typescript because I find it easier to write than standard js.

Generics are a complex concept for people to grasp without some time playing and reading docs, but once you learn it, you can express almost everything you want.

But for simple projects you can get away with all but the most basic of generics, if any at all.

With the release of conditional types, I find most of my js typing cases are covered.

Though tbh I've always leant toward the side of "if you can't express it easily, then you're being to JavaScripty".

discuss

order

No comments yet.