Skip to content

added LuaPairsIterable extension#1176

Merged
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
tomblind:pairs-iterable
Dec 6, 2021
Merged

added LuaPairsIterable extension#1176
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
tomblind:pairs-iterable

Conversation

@tomblind
Copy link
Copy Markdown
Collaborator

This adds the LuaPairsIterable extension type which indicates that a type can be iterated when passed to Lua's pairs function.

LuaTable now extends this type so it can be iterated using for...of.

This is the 2nd suggested implementation of #1023

Closes #1023

@Zamiell
Copy link
Copy Markdown
Contributor

Zamiell commented Nov 28, 2021

been waiting for this for a long time, thank you very much tom!

@Perryvw Perryvw merged commit 3eae0a2 into TypeScriptToLua:master Dec 6, 2021
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.

Support for..of on LuaTable

3 participants