Skip to content

Ref sugar type error #4433

@sxzz

Description

@sxzz

Version

3.2.6

Reproduction link

SFC Playground

Steps to reproduce

Copy to VSCode and enable Volar

What is expected?

fix this error

What is actually happening?

type RefValue<T> = T & { [RefMarker]?: any };

If & { [RefMarker]?: any }; is removed, the issue is just fixed.


By the way I added ref types, but it doesn't working.
node_modules/vue/ref-macros.d.ts seems doesn't exist.

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