You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeThing={a: string};typeOtherThing={readonlya: string};// This is correctly inferred to be ReadonlyShallow typeThingArray=readonlyThing[];// This is correctly inferred to be ReadonlyDeeptypeOtherThingArray=readonlyOtherThing[];// ReadonlyDeepdeclareconsta: OtherThingArray;// Flagged (ReadonlyDeep -> ReadonlyShallow)constb: ThingArray=a;
But this isn't:
typeThing={a: string};typeOtherThing={readonlya: string};// ReadonlyDeepdeclareconsta: readonlyOtherThing[];// Not flagged (it thinks readonly Thing[] is ReadonlyDeep when it should be ReadonlyShallow)constb: readonlyThing[]=a;
The text was updated successfully, but these errors were encountered:
This is working:
But this isn't:
The text was updated successfully, but these errors were encountered: