Skip to content

Commit

Permalink
fix(typescript): Fix data property definition in @feathersjs/errors (
Browse files Browse the repository at this point in the history
  • Loading branch information
tinovyatkin committed Nov 22, 2020
1 parent cc3521c commit ef1398c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/errors/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ export interface FeathersErrorJSON {
readonly message: string;
readonly code: number;
readonly className: string;
readonly data: any;
readonly data?: any;
readonly errors: any;
}

export class FeathersError extends Error {
readonly code: number;
readonly className: string;
readonly data: any;
readonly data?: unknown;
readonly errors: any;
constructor (msg: string | Error, name: string, code: number, className: string, data: any);
toJSON (): FeathersErrorJSON;
Expand Down

0 comments on commit ef1398c

Please sign in to comment.