공변성 (1) 썸네일형 리스트형 [TS] typescript-excess-property-checks https://www.typescriptlang.org/docs/handbook/release-notes/typescript-1-6.html#stricter-object-literal-assignment-checks Documentation - TypeScript 1.6 TypeScript 1.6 Release Notes www.typescriptlang.org 사소하다 아래 코드에서 a=b는 되는데 왜 c = {a:"a", b: "B"} 가 안될까? type A = { a : string } type B = { a : string, b : string } let a:A = {a: 'a'}; let b:B = {a: "A", b: "B"}; a = b; // OK let c:A = {a: "A", b: .. 이전 1 다음