Skip to content

Commit 4e3a3dd

Browse files
authored
Backwards compatibility for Validation type (#6288)
1 parent eed8ba5 commit 4e3a3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-types/shared/src/inputs.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type ValidationError = string | string[];
1818
export type ValidationErrors = Record<string, ValidationError>;
1919
export type ValidationFunction<T> = (value: T) => ValidationError | true | null | undefined;
2020

21-
export interface Validation<T> {
21+
export interface Validation<T = unknown> {
2222
/** Whether user input is required on the input before form submission. */
2323
isRequired?: boolean,
2424
/** Whether the input value is invalid. */

0 commit comments

Comments
 (0)