Skip to content

reactive and ref type infer is Wrong #1111

@shaonialife

Description

@shaonialife

Version

3.0.0-beta.7

Reproduction link

https://github.com/shaonialife/vue-next-test

Steps to reproduce

const state = reactive({
  foo: {
    value: 1,
    label: 'bar',
  },
});

console.log(state.foo.label); // Property 'label' does not exist on type 'number'

What is expected?

no lint error

What is actually happening?

Property 'label' does not exist on type 'number'


ref has same problem

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions