View Code? Open in Web Editor
NEW
JavaScript extensible custom error that can take a message and/or an Error object
Home Page: https://www.npmjs.com/package/extensible-custom-error
License: MIT License
JavaScript 95.46%
TypeScript 4.54%
extensible-custom-error's People
extensible-custom-error's Issues
This description was translated by @necojackarc
Hello. I got here from your Qiita post.
I would be happy if you could add a type declaration file for TypeScript and set it in package.json
.
I think this should be okay:
export default class ExtensibleCustomError extends Error {
constructor(message?: string, error?: Error);
constructor(error: Error);
}