Skip to content

Defining unknown properties as exist properties is wrong #12718

@nagaraja0yellapu

Description

@nagaraja0yellapu

Version

2.7.8

Reproduction link

github.com

Steps to reproduce

This issue was created first in Vetur & later fixed in @vuejs/composition-api as below
vuejs/vetur#2505

vuejs/composition-api#609

Recently the same issue is created in Volar and closed mentioning common.ts definitions in vuejs/composition-api
vuejs/language-tools#1350

What is expected?

Error has to be displayed when unknown property or data in template (typescript code)

What is actually happening?

No error is displayed when unknown property or data in template (typescript code) due to
export type Data = { [key: string]: unknown }
in types/common.d.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions