最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What is the difference between @type and @typedef? - Stack Overflow

programmeradmin6浏览0评论

After looking into I remain confused on what is the difference between the two.

Just what is the difference between them? Is it like, backwards patibility with an older version?

I would like some examples on what they differ and when to use one or the other.

Thank you!

After looking into https://developers.google./closure/piler/docs/js-for-piler I remain confused on what is the difference between the two.

Just what is the difference between them? Is it like, backwards patibility with an older version?

I would like some examples on what they differ and when to use one or the other.

Thank you!

Share Improve this question asked Sep 23, 2013 at 22:41 DiscipolDiscipol 3,1574 gold badges24 silver badges43 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

@type says what type a variable is. @typedef creates an alias to a type that you can use elsewhere.

发布评论

评论列表(0)

  1. 暂无评论