Skip to content

Commit 6222b39

Browse files
committed
feat: add type for value property validation
1 parent 1b8d34a commit 6222b39

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export interface ValuePropertyValidationError {
2+
value: unknown;
3+
type: symbol;
4+
}
5+
export class PropertyValidationError extends Error {
6+
value: unknown;
7+
type: symbol;
8+
constructor(infos: ValuePropertyValidationError) {
9+
super();
10+
this.value = infos.value;
11+
this.type = infos.type;
12+
}
13+
}

0 commit comments

Comments
 (0)