LearningTypeScript / site

Companion website for the Learning TypeScript book.
https://learningtypescript.com
MIT License
47 stars 11 forks source link

feat: added article on Branded Types #135

Closed JoshuaKGoldberg closed 6 days ago

JoshuaKGoldberg commented 6 months ago

PR Checklist

Overview

~Got through about half of it so far.~ ✅ This is complete.

Once typescript-eslint's no-floating-promises augmentations are shipped, I'll clean this up and put it in review. ~Tentatively early-mid-June or so.~ early-August it is!

The only blocker to publish is that I'd like ts-brand to be published with its latest make additions: https://github.com/kourge/ts-brand/issues/11.

JoshuaKGoldberg commented 3 weeks ago

@chriskrycho good point on the wrapper! Added a note with a link to your comment, thanks.

For Don't Parse, Validate, that's https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate, right? If so: great article, but I'm hesitant to include a Haskell-oriented one in this post. I've found that the jump between languages turns away devs who aren't confident enough to make that jump. If there's a popular equivalent for JS/TS-land I'd love that!

chriskrycho commented 2 weeks ago

@JoshuaKGoldberg yeah, that’s the one, and I agree that dumping folks into Haskell can feel like a lot. 😂 I don’t know of a good TS-focused write-up, alas (most of the ones I have found poking around are not great in various ways). It probably deserves its own entry here, honestly!