Skip to content

Commit

Permalink
feat: add type for value property validation
Browse files Browse the repository at this point in the history
  • Loading branch information
emyann committed Jun 22, 2019
1 parent 1b8d34a commit 6222b39
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/validation/PropertyValidationError.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export interface ValuePropertyValidationError {
value: unknown;
type: symbol;
}
export class PropertyValidationError extends Error {
value: unknown;
type: symbol;
constructor(infos: ValuePropertyValidationError) {
super();
this.value = infos.value;
this.type = infos.type;
}
}

0 comments on commit 6222b39

Please sign in to comment.