DaffInheritableError

A class which allows you to appropriately check the inheritance of an error. In typescript, when you try to extend an error with a specialized error class, if you try to call something like: ```ts class MyError extends Error {} let myError = new MyError(); myError instanceof MyError; // returns false ``` You will see unexpected things. This class fixes that issue as described here https://github.com/microsoft/TypeScript/issues/13965

Properties

Name Type Description
__proto__ Error
recoverable false
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.