Skip to content

Allow arguments name on parameter in ambient context #15390

@saschanaz

Description

@saschanaz

TypeScript Version: 2.2.1

Code

// A *self-contained* demonstration of the problem follows...
declare class HTMLCanvasElement {
    toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
}

Expected behavior: The name arguments on ambient class declarations does not really do anything, it should just be allowed.

Actual behavior: This is blocked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions