Skip to content

allow non-default properties with derived array types#308

Merged
Perryvw merged 3 commits intoTypeScriptToLua:masterfrom
TheLartians:derived_array_member_access
Dec 18, 2018
Merged

allow non-default properties with derived array types#308
Perryvw merged 3 commits intoTypeScriptToLua:masterfrom
TheLartians:derived_array_member_access

Conversation

@TheLartians
Copy link
Copy Markdown
Contributor

Generalises #289 for properties. This will allow working with interfaces that extend Array<T> and have member properties. Example:

interface NamedArray<T> extends Array<T>{
    name:string,
}

}

@TestCase("firstElement()", 3)
@TestCase("name", "array")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a testcase for length here (since that's what you added)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

Copy link
Copy Markdown
Member

@Perryvw Perryvw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the testcase for a default array property

@Perryvw Perryvw merged commit a11be62 into TypeScriptToLua:master Dec 18, 2018
@TheLartians TheLartians deleted the derived_array_member_access branch December 18, 2018 10:01
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