-
Notifications
You must be signed in to change notification settings - Fork 14
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
Should interfaces and their properties be implicitly readonly
?
#41
Comments
I don't think you can put the If I compile your last example I get this:
|
Right, but that's what I'm asking. Should that be the case? When are people mutating interfaces? They aren't instantiated by other instances. They're just adhered to within typed entities. |
Sure, if you ask me interfaces (and everything else) should be immutable by default in typescript :-). However if I understand what you are asking correctly this is nothing we can change within the scope of tslint-immutable. Perhaps this discussion should be moved to the typescript repo? Or do you have some action in mind that fits within the scope of this repo? |
I'm closing this as I cannot see any action we can take but feel free to continue with the discussion. |
If anyone stumbles upon this, an |
With the
readonly-keyword
rule, Interfaces throw errors if their properties don't have the keyword. Should interfaces and their properties be implicitlyreadonly
?The text was updated successfully, but these errors were encountered: