0👍
Seem like you miss the right way to write down methods
form: {
name: {
required,
isUnique : this.isUnique
}
}
},
methods: {
isUnique = (value, vm) => {
if (value === '') return true
if (vm.names) return !vm.names.includes(value)
return true
}
}
- [Vuejs]-Property does not exist on type 'never'
- [Vuejs]-Building a vue app with an undefined function
Source:stackexchange.com