Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I haveread the FAQ and my problem is not listed.
Repro
typeTestType=string[]|number[]
isTypeReadonly(checker,type,{})
Expected Result
isTypeReadonly
should returnfalse
Actual Result
isTypeReadonly
returnstrue
for any union
Additional Info
Predicate always returntrue
:
typescript-eslint/packages/type-utils/src/isTypeReadonly.ts
Lines 193 to 196 in97c0e86
t=> | |
seenTypes.has(t)|| | |
isTypeReadonlyRecurser(checker,t,options,seenTypes), | |
); |
Versions
package | version |
---|---|
@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 inVersions:@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