ie
data() {
return {
bar: false
rules: {
foo: (value) => {
if (this.bar) {}
}
}
}
}
The code is functioning correctly.
What steps can be taken to help typescript comprehend this?
If this is considered a "poor practice," please provide details or recommend an alternative approach.