Skip to content

@luaIterator on array types#479

Merged
tomblind merged 2 commits intomasterfrom
luaiterator-on-array
Mar 13, 2019
Merged

@luaIterator on array types#479
tomblind merged 2 commits intomasterfrom
luaiterator-on-array

Conversation

@tomblind
Copy link
Copy Markdown
Collaborator

This adds support for using @luaIterator directive on array types in addition to Iterable. This allows it to work when targetting older ES versions that don't define Iterable.

/** @luaIterator */ declare interface IterableLuaIterator<T> extends Iterable<T> {} // Works in ES6+ only
/** @luaIterator */ declare interface ArrayLuaIterator<T> extends Array<T> {} // Works in all ES targets

@tomblind tomblind merged commit badd012 into master Mar 13, 2019
@tomblind tomblind deleted the luaiterator-on-array branch March 13, 2019 20:33
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

Successfully merging this pull request may close these issues.

2 participants