質問

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

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

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

Thank you!

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top