Conditionally define TypeScript types using data
TypeScript Conditional Types only support conditions based on other types, but what if you want to use data to conditionally define a type?

Search for a command to run...
Articles tagged with #javascript
TypeScript Conditional Types only support conditions based on other types, but what if you want to use data to conditionally define a type?

Wrapping integration tests in a database transaction eliminates data bleed and improves test encapsulation, resulting in cleaner, less flaky tests.

Heads up! I've decided to self-manage my blog. I'm leaving this post live as to not "break the internet" but feel free check out the post on my new blog here! https://blog.ericyd.com/how-to-call-githubs-graphql-api-in-vanilla-js GraphQL is all the r...

Heads up! I've decided to self-manage my blog. I'm leaving this post live as to not "break the internet" but feel free check out the post on my new blog here! https://blog.ericyd.com/a-poor-persons-js-profiler For those of us who didn't suffer throu...