Skip to content

lib.d.ts: Incorrect MessageEvent constructor signature. #4295

Closed
@jduc88

Description

@jduc88

Description:

MessageEvent constructor signature should be same as base Event class ie.

new(type: string, eventInitDict?: EventInit): MessageEvent;

instead of,

new()

Documentation:

http://www.javascripture.com/MessageEvent

Error message on chrome:

TypeError: Failed to construct 'MessageEvent': An event name must be provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing codeBugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions