index.d.ts 427 B

12345678
  1. import { InjectionKey, Ref } from 'vue';
  2. export declare type CustomFieldInjectionValue = {
  3. customValue: Ref<(() => unknown) | undefined>;
  4. resetValidation: () => void;
  5. validateWithTrigger: (trigger: 'onBlur' | 'onChange' | 'onSubmit') => void;
  6. };
  7. export declare const CUSTOM_FIELD_INJECTION_KEY: InjectionKey<CustomFieldInjectionValue>;
  8. export declare function useCustomFieldValue(customValue: () => unknown): void;