We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example in ReadonlyArray<T> the T type is not checked if it is a literal type.
ReadonlyArray<T>
T
For example this does not give errors:
type foo = ReadonlyArray<{ type: string, code: string }>;
But only this should be allowed:
type foo = ReadonlyArray<{ readonly type: string, readonly code: string }>;
The text was updated successfully, but these errors were encountered:
Also check if this is handled for readonly-array.
Sorry, something went wrong.
This is fixed in the new readonly-keyword rule (see #31).
readonly-keyword
No branches or pull requests
For example in
ReadonlyArray<T>
theT
type is not checked if it is a literal type.For example this does not give errors:
But only this should be allowed:
The text was updated successfully, but these errors were encountered: