- useValidation(): {
commaAwareLength: (
param: { max?: number; min?: number },
) => (value: any) => string | true;
length: (
param: { max?: number; min?: number },
) => (value: any) => string | true;
required: (
message?: string,
) => (
value?: string | number | boolean | string[] | boolean[] | number[],
) => string | true;
} Returns {
commaAwareLength: (
param: { max?: number; min?: number },
) => (value: any) => string | true;
length: (
param: { max?: number; min?: number },
) => (value: any) => string | true;
required: (
message?: string,
) => (
value?: string | number | boolean | string[] | boolean[] | number[],
) => string | true;
}
commaAwareLength: (param: { max?: number; min?: number }) => (value: any) => string | true
length: (param: { max?: number; min?: number }) => (value: any) => string | true
required: (
message?: string,
) => (
value?: string | number | boolean | string[] | boolean[] | number[],
) => string | true
バリデーションチェックを行うロジックを生成します。