Skip to content

Feature Request: Argument<> or Parameter<> type #2278

Open
@GiuseppeIII

Description

@GiuseppeIII

In typescript there is a Parameters<Type>: https://www.typescriptlang.org/docs/handbook/utility-types.html#parameterstype, that allows one to easily get the parameters of a function. In an event rpc system I am currently working on, something like this would be useful where I could do something like ---@overload fun(event: function_name, ...: Parameters<function_name>))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeat/genericRelated to generic emulation feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions