镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Closed

Description

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;

Activity

  1. sandersn commented on Jun 28, 2016

    @sandersn
    MemberAuthor
  2. sandersn commented on Jun 29, 2016

    @sandersn
    MemberAuthor

    #9401 fixes this.

  3. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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