site icon indicating copy to clipboard operation
site copied to clipboard

feat: added article on Branded Types

Open JoshuaKGoldberg opened this issue 1 year ago • 2 comments

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 avatar Feb 12 '24 17:02 JoshuaKGoldberg

@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!

JoshuaKGoldberg avatar Jul 30 '24 11:07 JoshuaKGoldberg

@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!

chriskrycho avatar Aug 01 '24 14:08 chriskrycho