We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b8d34a commit 6222b39Copy full SHA for 6222b39
src/validation/PropertyValidationError.ts
@@ -0,0 +1,13 @@
1
+export interface ValuePropertyValidationError {
2
+ value: unknown;
3
+ type: symbol;
4
+}
5
+export class PropertyValidationError extends Error {
6
7
8
+ constructor(infos: ValuePropertyValidationError) {
9
+ super();
10
+ this.value = infos.value;
11
+ this.type = infos.type;
12
+ }
13
0 commit comments