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
test.ts:21:3 - error TS2322: Type 'string' is not assignable to type 'never'.
21 name: 'hello',
~~~~
test.ts:22:3 - error TS2322: Type 'number' is not assignable to type 'never'.
22 age: 123,
~~~
test.ts:23:3 - error TS2322: Type 'string' is not assignable to type 'never'.
23 occupation: '123',
~~~~~~~~~~
test.ts:24:3 - error TS2322: Type 'string' is not assignable to type 'never'.
24 role: '123'
~~~~
TypeScript Version: 3.9.2
Search Terms:
omit, insection types
Code
Expected behavior:
no error
Actual behavior:
Playground Link:
https://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=26&pc=15#code/LAKAlgdgLgpgTgMwIYGMYAICqBne6Deo66UAngA4wBc6A5AK65y0DcR6ESAttetlHEgBzNiGJIhvCPS4AjeKOIB7FCnrkkUMEog1+giCNABfUKEixEqDAEEAJl0gF2ZSjVpIHkVu0489AsKK6BJSMvJwwXBKADa8+kEmZiCuGAAKSgDu8Dh4ALzoAPKOUAA8uXDoAGTo9o4QADR0qbQAfNXOYiQUvLTkWTlMtCaicVDo5DQZ2XAV6AWEXanu-TMVtA2+3L0AFjAxMUob7KE0AIwATADMm10qahpaOu6XV8dd0XEv18MgpiAoHTYWIwAB0hyEAApyABKIA
Related Issues:
The text was updated successfully, but these errors were encountered: