Skip to content

getCurrentInstance type not correct #12596

@iceprosurface

Description

@iceprosurface

Version

2.7.0

Steps to reproduce

vue2.7 getCurrentInstance type was not match vue3 & @vue/composition-api

export function getCurrentInstance(): { proxy: Component } | null {
  return currentInstance && { proxy: currentInstance }
}

see:

What is expected?

has correct type

What is actually happening?

not match

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