Replying to @mattpocockuk
@mattpocockuk Is there a way I can explictly type a function that returns an object whose keys are classes such that I can guarantee all classes extend
a base class without losing the specific type. The goal is to enforce that all values extend the base class.
Horacio retweeted
Security is highly contextualized and the idea that on-prem is innately more secure is misguided.
Horacio retweeted
🔥 TypeScript Tip 🔥
Creating a Context in React can be pretty annoying in TypeScript.
Here's my method for keeping things typesafe, minimizing use of 'as', and also ensuring folks use your custom hooks, instead of useContext.
















