is an application of the duck test —"If it walks like a duck and it quacks like a duck, then it must be a duck"— to determine whether an object can be used for a particular purpose. コンピュータ・プログラミングでは、Duck Typing はダック・テストの応用である。 「アヒルのように歩き、アヒルのように鳴くなら、それはアヒルに違いない」 あるオブジェクトが特定の目的に使用できるかどうかを判断する。 Duck Typing とは
on the shape that values have. This is sometimes called “duck typing” or “structural typing”. In a structural type system, if two objects have the same shape, they are considered to be of the same type. Typescript における Duck Typing