Suggestion
π Search Terms
β
Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Change JSDoc @typedef to not apply to following expression
π Motivating Example
Using @typedef like interface is great for JS files. But if any expression comes after it, TypeScript tries to apply that typedef to that expression. This means we have to make sure to put it at the end of a file and make sure nothing comes after it. Not ideal.
π» Use Cases
See above.
Suggestion
π Search Terms
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Change JSDoc
@typedefto not apply to following expressionπ Motivating Example
Using
@typedeflikeinterfaceis great for JS files. But if any expression comes after it, TypeScript tries to apply that typedef to that expression. This means we have to make sure to put it at the end of a file and make sure nothing comes after it. Not ideal.π» Use Cases
See above.