mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add return for async rule * Add missing validation properties * Remove useless property * Strict type of custom rules
31 lines
730 B
TypeScript
31 lines
730 B
TypeScript
import { ValidationParams } from './lib/validators'
|
|
import Vue, { PluginFunction } from 'vue'
|
|
|
|
/**
|
|
* Covers beforeCreate(), beforeDestroy() and data().
|
|
*
|
|
* No public members.
|
|
*/
|
|
export const validationMixin: any
|
|
|
|
// const Validation
|
|
export interface Validation extends Vue {
|
|
$model: any
|
|
// const validationGetters
|
|
readonly $invalid: boolean
|
|
readonly $dirty: boolean
|
|
readonly $anyDirty: boolean
|
|
readonly $error: boolean
|
|
readonly $anyError: boolean
|
|
readonly $pending: boolean
|
|
readonly $params: { [attr: string]: any }
|
|
|
|
// const validationMethods
|
|
$touch(): never
|
|
$reset(): never
|
|
$flattenParams(): ValidationParams[]
|
|
}
|
|
|
|
// vue plugin
|
|
export const Vuelidate: PluginFunction<any>
|