disable typescript duck typing (타입스크립트 덕타이핑 제한)
interface Point2D { norminal: Point2D; x: number; y: number; } interface Point3D { norminal: Point3D; x: number; y: number; z: number; } type Nominal = T; const point2D = { x: 16, y: 24 }; const point3D = { x: 39, y: 7, z: 12 }; interface DisableDuckTyping extends Point2D { readonly norminal: T; } type p2dType = DisableDuckTyping; type p3dType = DisableDuckTyping; const p2d = (1 as never as p2dT..