mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-18 06:42:52 +00:00
31 lines
728 B
TypeScript
31 lines
728 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(): void
|
|
$reset(): void
|
|
$flattenParams(): ValidationParams[]
|
|
}
|
|
|
|
// vue plugin
|
|
export const Vuelidate: PluginFunction<any>
|