Skip to content

Update lib.d.ts with this parameters for event handlers #9374

Closed
@sandersn

Description

@sandersn

Expected:

Intellisense from this

// @filename: lib.d.ts
onclick: (this: this, ev: MouseEvent) => any;
// @filename: test.ts
document.documentElement.onclick = function () {
    this./**/
}

Actual:
No intellisense from this:

onclick: (ev: MouseEvent) => any;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions