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
interfaceItem{id: number;name: string;age: number;}constform: Item={id: 99,name: 'k',age: 99,};consttext: Item={id: 1,name: 'εΌ δΈ',age: 18,};(['id','name','age']asconst).forEach(key=>{text[key]=text[key];});// Type 'string | number' is not assignable to type 'never'.// Type 'string' is not assignable to type 'never'.
Activity
jcalz commentedon Oct 11, 2021
Working as intended, as per #30769. Possible duplicate of #32693
fatcerberus commentedon Oct 11, 2021
Uh... no it's not? Nor is it a bug. It's just an error you didn't expect.
typescript-bot commentedon Oct 14, 2021
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.