Skip to content

Missing return type for toArray() #42

@repulsio

Description

@repulsio

Currently, Yallist.toArray() returns a type of Array<any>. However, since Yallist<T> is initialized with a specific type T, could we instead return Array<T> from Yallist.toArray()?


Perhaps

toArray() {
    // ...
}

could be updated to something like:

toArray(): Array<T> {
    // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions