Skip to content

has some problem in Type Inference #770

@candy-Tong

Description

@candy-Tong

Reproduction

https://github.com/candy-Tong/pinia-demo

I set the Ref<EdgeConfig> type for the edge state. but in action, I use this.edge, the inferred type is not correct, it seems that it says that it reports an error
image

Steps to reproduce the behavior

  1. yarn install
  2. npm run tsc

image

Expected behavior

there is no typescript error

Actual behavior

has typescript error

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