[@types/feathersjs__errors] Added typings for the missing "code", "className", "data" and "errors" property members of the FeathersError object.

This commit is contained in:
Razvan Muscalu
2019-01-21 22:16:15 +02:00
parent ca809fa16f
commit afb8bca54a
+5 -1
View File
@@ -5,7 +5,11 @@
// TypeScript Version: 2.2
export class FeathersError extends Error {
constructor(msg: string | Error, name: string, code: number, className: string, data: any)
code: number;
className: string;
data: any;
errors: any;
constructor(msg: string | Error, name: string, code: number, className: string, data: any);
}
export class BadRequest extends FeathersError {