DEV Community

Discussion on: Using TypeScript without TypeScript 😎

Collapse
 
tbroyer profile image
Thomas Broyer

@template is not in JSDoc's documentation (the tool that generates documentation from comments), but it's in TypeScript's JSDoc (that's not there for documentation as much as for static typing), as linked to by Rich Harris in the tweet you cited: typescriptlang.org/docs/handbook/j...

In other words, I wouldn't use "what's supported by one specific tool that generates documentation from comments" as an argument for "it's non standard" when your use case is not generating documentation with that specific tool.

Collapse
 
puruvj profile image
PuruVJ

I'll keep that in mind, thanks :)