Why does Typescript allow `{a: 1, b: 2}` to be assigned to type `{a: any} | {b: any}`? [duplicate]

前端 未结 1 1032
无人共我
无人共我 2021-01-18 06:35
热议问题