Skip to content

Incorrect signature of ErrorEvent constructor #12644

Closed
microsoft/TypeScript-DOM-lib-generator
#171

Description

@cronon

TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)

Expected behavior:
ErrorEvent constructor should have params accorditng to the spec
https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface

interface ErrorEventInit extends EventInit {
  message?: string;
  filename?: string;
  lineno?: number;
  conlno?: number;
  error?: any;
}
declare var ErrorEvent: {
    prototype: ErrorEvent;
    new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent;
}

Actual behavior:
In lb.d.ts https://github.com/Microsoft/TypeScript/blob/master/lib/lib.d.ts#L7903
ErrorEvent constructor doesn't have any params.

Activity

  1. added
    Fixed in TSJS repo
    on Dec 16, 2016
  2. added
    Bug
    Domain: lib.d.ts
    on Dec 16, 2016
  3. added
    Fixed
    on Feb 2, 2017
  4. removed
    Fixed in TSJS repo
    on Feb 3, 2017
  5. 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

    BugDomain: lib.d.tsFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions