-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[isTypeReadonly] Unions are always marked as readonly #4418
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
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: type-utils
Issues related to the @typescript-eslint/type-utils package
Comments
RebeccaStevens
added a commit
to RebeccaStevens/typescript-eslint
that referenced
this issue
Jan 9, 2022
3 tasks
RebeccaStevens
added a commit
to RebeccaStevens/typescript-eslint
that referenced
this issue
Jan 9, 2022
RebeccaStevens
added a commit
to RebeccaStevens/typescript-eslint
that referenced
this issue
Jan 9, 2022
RebeccaStevens
added a commit
to RebeccaStevens/typescript-eslint
that referenced
this issue
Jan 9, 2022
3 tasks
RebeccaStevens
added a commit
to RebeccaStevens/typescript-eslint
that referenced
this issue
Jan 10, 2022
RebeccaStevens
added a commit
to RebeccaStevens/typescript-eslint
that referenced
this issue
Jan 10, 2022
RebeccaStevens
added a commit
to RebeccaStevens/typescript-eslint
that referenced
this issue
Jan 10, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: type-utils
Issues related to the @typescript-eslint/type-utils package
Repro
Expected Result
isTypeReadonly
should returnfalse
Actual Result
isTypeReadonly
returnstrue
for any unionAdditional Info
Predicate always return
true
:typescript-eslint/packages/type-utils/src/isTypeReadonly.ts
Lines 193 to 196 in 97c0e86
Versions
@typescript-eslint/type-utils
5.9.0
@typescript-eslint/type-utils
5.9.0
TypeScript
4.5.4
node
17.1.0
Also note the error in the template in Versions:
@typescript-eslint/type-utils
's version is requested twice. I assume there is supposed to be only one or one is supposed to be@typescript-eslint/experimental-utils
The text was updated successfully, but these errors were encountered: