Skip to content

generic rest parameters #101

@maiermic

Description

@maiermic

As mentioned in #96 we can describe generics that take an indefinite number of type arguments using rest parameter syntax:

interface Collection[...T] {
  // use rest parameters to describe Collection interface 
}

But how can we access a specific type (argument) of the passed rest arguments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions