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-interface does not check template type literals #17

Closed
jonaskello opened this issue Apr 8, 2017 · 2 comments
Closed

readonly-interface does not check template type literals #17

jonaskello opened this issue Apr 8, 2017 · 2 comments
Labels

Comments

@jonaskello
Copy link
Owner

For example in ReadonlyArray<T> the T type is not checked if it is a literal type.

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 }>;
@jonaskello jonaskello added the bug label Apr 8, 2017
@jonaskello
Copy link
Owner Author

Also check if this is handled for readonly-array.

@jonaskello
Copy link
Owner Author

This is fixed in the new readonly-keyword rule (see #31).

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