Skip to content

QInput rules parameter has any type with Volar #11043

@jlucaso1

Description

@jlucaso1

Describe the bug
When I create an input with rules, the IDE (VSCode) show me this error:
Parameter 'val' implicitly has an 'any' type.ts(7006)
Example:
<q-input v-model="model" label="Required Field" :rules="[(val) => (val && val.length > 0) || 'Field is required!']" />

Platform (please complete the following information):
Quasar Version: 2.1.7
@quasar/app Version: 3.1.5

Thanks

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions