Skip to content

Allow $multi to be cast to any#1327

Merged
Perryvw merged 1 commit into
TypeScriptToLua:masterfrom
GlassBricks:multi-any
Aug 11, 2022
Merged

Allow $multi to be cast to any#1327
Perryvw merged 1 commit into
TypeScriptToLua:masterfrom
GlassBricks:multi-any

Conversation

@GlassBricks

Copy link
Copy Markdown
Contributor

any exists to turn off the type-checker; This PR allows $multi() calls to be casted to any/returned in functions typed as any. This allows getting around current limitations with multi-return, e.g. in custom lua iterators with state

@GlassBricks GlassBricks changed the title Allow MultiReturn to be typed as any Allow MultiReturn to be cast to any Aug 10, 2022
@GlassBricks GlassBricks changed the title Allow MultiReturn to be cast to any Allow $multi cast to any Aug 10, 2022
@GlassBricks GlassBricks changed the title Allow $multi cast to any Allow $multi to be cast to any Aug 10, 2022
@Perryvw Perryvw merged commit 8f60f9f into TypeScriptToLua:master Aug 11, 2022
@GlassBricks GlassBricks deleted the multi-any branch August 11, 2022 17:13
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