I'm currently struggling to locate and utilize the ValidationFlags
type within Vee-Validate 3. Despite my efforts, I am encountering difficulties in importing it.
I am aware that this type is present in the source code located here. However, when I attempt to import it using:
import { ValidationObserver, ValidationFlags } from "vee-validate";
An error message informs me that there is no exported member named ValidationFlags. Below is an excerpt of sample code illustrating what I am attempting to achieve:
<template>
<ValidationProvider v-slot="validationContext">
<input v-model="name" :state="isValidState(validationContext)"/>
</ValidationProvider>
</template>
<script lang="ts">
import { ValidationObserver } from "vee-validate";
methods: {
isValidState({ valid, dirty }: --someTypeHere--) { // A type warning occurs if a type is not specified here
return valid;
}
}
</script>
How can I correctly import the appropriate type for Validation Flags and apply it as a parameter in my isValidState
method?