Skip to content

[Feature] Overload waitForEvent to return specific type #1674

@kalekseev

Description

@kalekseev

Right now waitForEvent return type is Object, but we can have specific types with overload:

waitForEvent(event: "popup", optionsOrPredicate?: Function|PageWaitForEventOptionsOrPredicate): Promise<Page>;
...
waitForEvent(event: string, optionsOrPredicate?: Function|PageWaitForEventOptionsOrPredicate): Promise<Object>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions