Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
saschanaz opened this issue Apr 18, 2018 · 1 comment
Closed

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

saschanaz opened this issue Apr 18, 2018 · 1 comment

Comments

@saschanaz
Copy link
Contributor

saschanaz commented Apr 18, 2018

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.

@saschanaz saschanaz changed the title Emit Iterable<T> for sequences for es6 lib target Emit Iterable<T> for sequence type arguments for es6 lib target Apr 18, 2018
@saschanaz
Copy link
Contributor Author

Fixed by #699. Yay me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant