Problem: TypeScript errors are typed "unknown"


Problem:
TypeScript errors are typed "unknown".

Solution:
Throw custom errors. They're easy to inspect.

How:
1. Create an ErrorBase class.
2. Create an instance ErrorBase for each feature and specify the feature's potential errors.

#typescript

View original on X