Skip to content

Emit { [x:string]: any } for IDL object type on arguments #290

Open
@saschanaz

Description

@saschanaz

For example, document.scrollIntoView should receive object | boolean while PaymentResponse.prototype.details should still be any to allow arbitrary property access. (microsoft/TypeScript#18228)

PS: WebIDL object can be safely mapped to { [x:string]: any }, so we can use it so that both object on function argument and class member can be mapped without any complexity.

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