Skip to content

strictVModel=true requires modelValue type to include undefined #5479

Closed
@Doeke

Description

@Doeke

Vue - Official extension or vue-tsc version

3.0.1

VSCode version

1.102.2

Vue version

3.5.13

TypeScript version

5.8.3

System Info

package.json dependencies

Steps to reproduce

  • Enable strictVModel (or strictTemplates which sets strictVModel to true too)
  • Use a component that has a v-model prop with some type, eg string
  • Write v-model="myString" where myString is a ref with type string

What is expected?

To be able to use v-model without type error

What is actually happening?

Image

Link to minimal reproduction

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions