Files
manolia-alpha/node_modules/buetify/lib/composables/validation/useValidation.d.ts
Robin COuret e0e50af706 init component
2026-02-16 17:28:37 +01:00

38 lines
1.1 KiB
TypeScript
Executable File

import { FunctionN } from 'fp-ts/lib/function';
import { Ref, ExtractPropTypes, PropType } from 'vue';
export declare const UseValidationPropsDefinition: {
isDisabled: {
type: PropType<boolean>;
required: boolean;
default: boolean;
};
isReadonly: {
type: PropType<boolean>;
required: boolean;
default: boolean;
};
disableIfReadonly: {
type: PropType<boolean>;
required: boolean;
default: boolean;
};
useNativeValidation: {
type: PropType<boolean>;
default: boolean;
};
isValid: {
type: PropType<boolean>;
default: boolean;
};
'onUpdate:isValid': {
type: PropType<FunctionN<[boolean], void>>;
default: import("fp-ts/lib/function").Lazy<() => void>;
};
};
export declare type UseValidationProps = ExtractPropTypes<typeof UseValidationPropsDefinition>;
export declare function useValidation(props: UseValidationProps, ref: Ref<HTMLElement>): {
isDisabled: Ref<boolean>;
isValid: Ref<boolean>;
validate: () => void;
};