Articles tagged "typescript":
Tools I Want: A VSCode plugin that highlights how often an error appears in Sentry, or other monitoring tools
I liberally throw errors defensively, often not expecting the error scenario to ever actually occur - it would be nice if I could see some real metrics about how often a thing is occurring, without having to leave the IDE.
TypeScript - indexing into a mapped type
Indexing into a mapped type a powerful TypeScript technique to allow a collection of all different types, while retaining the type information.
TypeScript types are inferred in a forward direction
TypeScript's type inference is powerful, but it does have constraints. One constraint is that it can't retrospectively narrow types.
Why I've gone off React Testing Library
React Testing Library is perhaps the most popular tool for testing React applications. However its use of JSDOM under-the-hood means we often spend time dealing with browser APIs that JSDOM has not implemented.