Skip to content

Object literal method declaration support#249

Merged
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
tomblind:object_method_decl
Oct 18, 2018
Merged

Object literal method declaration support#249
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
tomblind:object_method_decl

Conversation

@tomblind
Copy link
Copy Markdown
Collaborator

Currently, object literal methods are not supported:

const foo = {
    bar(): string { return "foobar"; } //error: Unsupported object literal element kind: MethodDeclaration
};

This PR adds support for them.

@Perryvw Perryvw merged commit e279922 into TypeScriptToLua:master Oct 18, 2018
@tomblind tomblind deleted the object_method_decl branch October 18, 2018 17:00
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