Typescript: Misunderstanding about duck typing

前端 未结 0 716
小鲜肉
小鲜肉 2020-12-10 07:07

I\'m studying Typescript reading Handbooks & Docs. And i\'m just curious about how Typescript Duck Typing Works.

For example, this code provides Type error (using

相关标签:
回答
  • 消灭零回复
提交回复
热议问题