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'.
π Actual behavior
bug occured
π Expected behavior
no bug
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
π Search Terms
π Version & Regression Information
typescript - 4.5.0
β― Playground Link
link
π» Code
π Actual behavior
bug occured
π Expected behavior
no bug
The text was updated successfully, but these errors were encountered: