Skip to content

Commit 218ad6e

Browse files
committed
refactor: fix types for maxLength and minLength validation errors
1 parent f9103fd commit 218ad6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

validation/src/max-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Boxed, unbox, ValidationErrors } from 'ngrx-forms';
22

33
export interface MaxLengthValidationError {
44
maxLength: number;
5-
value: string;
5+
value: string | any[];
66
actualLength: number;
77
}
88

validation/src/min-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Boxed, unbox, ValidationErrors } from 'ngrx-forms';
22

33
export interface MinLengthValidationError {
44
minLength: number;
5-
value: string;
5+
value: string | any[];
66
actualLength: number;
77
}
88

0 commit comments

Comments
 (0)