@polargold/pg-frontend-vue
    Preparing search index...

    Function useValidationMethods

    • Vuelidate helper methods: reset/validate a Vuelidate instance and read its error messages, without repeating the nextTick() dance Vuelidate itself requires around $reset()/$validate().

      Ported unchanged from a copy byte-identical between luv-autoq-frontend and bws-checkout-service-spa — found during a follow-up review pass, not in the original audit. Requires @vuelidate/core as a peer dependency (optional — only apps using Vuelidate need it).

      Returns {
          getErrorMessage: ($v: Ref<Validation>, propertyName: string) => any;
          hasErrorMessage: ($v: Ref<Validation>, propertyName: string) => boolean;
          hasErrors: ($v: Ref<Validation>) => boolean;
          resetValidation: ($v: Ref<Validation>) => Promise<void>;
          validate: ($v: Ref<Validation>) => Promise<boolean>;
      }