Skip to content

string[] cannot be used instead of DOMStringList #12069

@falsandtru

Description

@falsandtru

DOMStringList has some methods different from string[] such as constains and item. So we need to revert microsoft/TypeScript-DOM-lib-generator#148 by next release 2.1.0.

TypeScript Version: 2.1.0-dev.20161106

Code

interface DOMStringList {
    readonly length: number;
    contains(str: string): boolean;
    item(index: number): string | null;
    [index: number]: string;
}

cc @mhegazy

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions