Skip to content

Type issues after enabling takeover mode #2534

@Thooto

Description

@Thooto

Hi,

I am getting type inference issues in typescript files after having enabled takeover mode.

Capture d’écran 2023-03-22 à 10 43 37

Capture d’écran 2023-03-22 à 10 45 25

Prior to that, Typescript would correctly hint accArray and outputArray types as number[].

Any idea of what is causing this issue? Also, theses issues don't appear at build time for the project. Please let me know if I should provide you with my tsconfig.json or anything else that could help.

The issue happens with both 1.2.0 and 1.3.4 (prerelease) versions of Volar.
I'm using Typescript 4.6.3 in my project and Vue 2.6.
Seems to also happen when using latest version of Typescript provided by VSCode.
I correctly disabled VSCode builtin Typescript plugin.

Thanks!

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