Skip to content

$once does accept an array of events as the first parameter, but the vue.d.ts doesn't #8983

Closed
@yikuo123

Description

@yikuo123

Version

2.5.17

Reproduction link

https://github.com/vuejs/vue/blob/dev/types/vue.d.ts#L56

Steps to reproduce

edit the code in an editor

What is expected?

the editor prompt correctly

What is actually happening?

there is a warning:Argument type string[] is not assignable to parameter type string

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