UNPKG

extendo-error

Version:

Safely and simply extend native Error with prototype chaining support

10 lines (9 loc) 278 B
import ExtendoError from "../src/extendo-error"; export default class AnotherChildError extends ExtendoError { readonly theAnswer: number; readonly thisMuch: boolean; doSomething(): void; doSomethingElse(): void; aMagicNumber: number; theWord: string; }