I'm a selftaught (web) developer. On sunny days, you can find me hiking through the Teutoburg Forest, on rainy days coding or with a good fiction novel in hand.
Your comment got me curious on complex types - I haven't used JSDoc trying to declare such yet. Can you please explain this a bit further?
I couldn't find a lot of good examples in the ts docs, neither on the www.
Your comment got me curious on complex types - I haven't used JSDoc trying to declare such yet. Can you please explain this a bit further?
I couldn't find a lot of good examples in the ts docs, neither on the www.
As far as I know, you can
/** @type {} */
to specify types for a variable/** @type {} */ (x)
to force a variable to type/** @typedef {} */
to declare a type in advanceBut still,
BTW, much of typing works inside
/** @type {} */
's bracelets. You can even useimport().Class
and use TypeScript interface syntax inside them.