Misha Kaletsky

Misha Kaletsky

@mmkal.com

Blueskposting about TypeScript & OSS: expect-type (~vitest), http://pgkit.dev, http://artifact.ci, trpc-cli, others Ex microsoft, http://zocdoc.com, http://havenhealthcare.rip, http://hidrb.com

707 followers125 following16 posts

Reminder that the National Popular Vote Interstate Compact exists and has a *chance* of coming into effect, it only needs a handful more purple states to sign on. If you're frustrated to be voting in a non-swing state today, check it out and see how you can support it www.nationalpopularvote.com

nationalpopularvote.comNational Popular VoteState status: AK AL AR AZ CA CO CT DC DE FL GA HI IA ID IL IN KS KY LA MA MD ME MI MN MO MS MT NC ND NE NH NJ NM NV NY OH OK OR PA RI SC SD TN TX UT VA VT WA WI WV WY The National Popular Vote bill wo...

Worth also remembering that a Republican presidential candidate has won the popular vote in the US exactly *once* since 1988. And yet we've somehow had twelve years of Republican presidents, and however many decades of their Supreme Court picks.

I love this pattern. I'd go further than - not to be an defender of abstraction which is so uncool now - but in medium to large projects, you should usually do something like this for any dependencies that you use in more than a handful of places.

an underutilized pattern to add custom functionality to Zod: create a "my-zod.ts" file that re-exports everything from zod. then define additional types/functionality in that file. then you can do `import * as z from "./myzod"` to use your custom types alongside Zod's built-ins

It makes it so much easier to - add functionality - upgrade to new major versions - narrow types to your domain - switch to another dependency entirely - apply patches/side effects without them "infecting" the rest of your codebase

You are up to date.