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

Add option to mark properties as private API #99

Open
sandersky opened this issue Jan 10, 2017 · 0 comments
Open

Add option to mark properties as private API #99

sandersky opened this issue Jan 10, 2017 · 0 comments

Comments

@sandersky
Copy link
Contributor

sandersky commented Jan 10, 2017

We should be able to mark certain properties as private, complaining when the property is set by the consumer when initializing an instance. For example a consumer of Ember.Component should not be passing in isDestroyed or isDestroying. We should allow a component to do something like:

propTypes: {
  isDestroyed: PropTypes.bool({private: true}),
  isDestroying: PropTypes.bool({private: true})
}
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