You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const value = defineModel({
get: (value: number | string) => {
if (typeof value === 'number' || (typeof value === 'string' && value && !isNaN(Number(value)))) {
return new Decimal(value).div(finalUnit.value).toNumber()
}
return undefined
},
set: (value: number) => {
if (typeof value === 'number') {
return new Decimal(value).mul(finalUnit.value).toNumber()
}
return undefined
}
})
What did you expect to happen?
I expect eslint to pass all checks, including no warnings.
What actually happened?
But it threw a warning on defineModel:warning Prop "modelValue" should define at least its type vue/require-prop-types Repository to reproduce this issue
The text was updated successfully, but these errors were encountered:
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
I expect eslint to pass all checks, including no warnings.
What actually happened?
But it threw a warning on defineModel:warning Prop "modelValue" should define at least its type vue/require-prop-types
Repository to reproduce this issue
The text was updated successfully, but these errors were encountered: