Skip to content

Emit Iterable<T> for sequence type arguments for es6 lib target #443

@saschanaz

Description

@saschanaz

Input:

interface Foo {
  void bar(sequence<short> numbers);
};

dom.generated.d.ts:

interface Foo {
  bar(numbers: number[]): void;
}

dom.es6.generated.d.ts:

interface Foo {
  bar(numbers: Iterable<number>): void;
}

This will fix #419 in more general way, although still we have no choice for dictionary types.

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