Skip to content

Suggestion: use :{type} to omit formal parameter when declare function interface or something else #10984

Closed
@wyntau

Description

@wyntau

When we declare a function interface, omit formal parameter. Because the param name is not important in interface, just the param type does.

So, we can make below code

interface func{
    (paramA: typeA, paramB: typeB): typeC;
}

to this form

interface func{
    (:typeA, :typeB): typeC
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions