Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider readonly properties in interfaces (replacing getXxx()) #8

Open
sharwell opened this issue Oct 3, 2016 · 2 comments
Open
Assignees
Milestone

Comments

@sharwell
Copy link
Member

sharwell commented Oct 3, 2016

Currently the Tree interface contains the following method (#5):

getParent(): Tree;

We should consider using the following form, where a property is exposed instead of a method:

readonly parent: Tree;
@BurtHarris
Copy link
Collaborator

Yes, this sounds good. P.S. readonly is brand new in TypeScript 2.0.

@BurtHarris
Copy link
Collaborator

Reopening because so many 'getXxx()' or functional equivalent remain.

@BurtHarris BurtHarris reopened this May 21, 2017
@BurtHarris BurtHarris changed the title Consider readonly properties in interfaces Consider readonly properties in interfaces (replacing getXxx()) May 21, 2017
@BurtHarris BurtHarris assigned BurtHarris and unassigned sharwell Jun 11, 2017
@BurtHarris BurtHarris removed the fixed label Jun 11, 2017
@BurtHarris BurtHarris modified the milestones: Beta 0.5, 0.4.0-alpha.3 Jun 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants