From afb8bca54a8982b435cb5fae2a509abd8b75ce69 Mon Sep 17 00:00:00 2001 From: Razvan Muscalu <34776591+RazzM13@users.noreply.github.com> Date: Mon, 21 Jan 2019 22:16:15 +0200 Subject: [PATCH] [@types/feathersjs__errors] Added typings for the missing "code", "className", "data" and "errors" property members of the FeathersError object. --- types/feathersjs__errors/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/feathersjs__errors/index.d.ts b/types/feathersjs__errors/index.d.ts index 056acff676..9adcdc6dbf 100644 --- a/types/feathersjs__errors/index.d.ts +++ b/types/feathersjs__errors/index.d.ts @@ -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 {