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

[readonly-array] Nested arrays aren't allowed to be mutable with ignore-prefix. #132

Closed
RebeccaStevens opened this issue Mar 20, 2019 · 0 comments
Labels

Comments

@RebeccaStevens
Copy link
Collaborator

I can't define a multidimensional array to be mutable using ignore-prefix, only the outer most array is ignored.

const mutable2DArray: number[][] = [[0], [1], [2]];
                      ~~~~~~~~                      [Only ReadonlyArray allowed.]
RebeccaStevens added a commit that referenced this issue Mar 21, 2019
RebeccaStevens added a commit that referenced this issue Mar 21, 2019
RebeccaStevens added a commit that referenced this issue Mar 22, 2019
RebeccaStevens added a commit that referenced this issue Mar 24, 2019
* Fixed #132

* Adjusted rules code style.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant