We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed8ba5 commit 4e3a3ddCopy full SHA for 4e3a3dd
packages/@react-types/shared/src/inputs.d.ts
@@ -18,7 +18,7 @@ export type ValidationError = string | string[];
18
export type ValidationErrors = Record<string, ValidationError>;
19
export type ValidationFunction<T> = (value: T) => ValidationError | true | null | undefined;
20
21
-export interface Validation<T> {
+export interface Validation<T = unknown> {
22
/** Whether user input is required on the input before form submission. */
23
isRequired?: boolean,
24
/** Whether the input value is invalid. */
0 commit comments