Open y-hsgw opened 2 months ago
I'm not sure what you mean - are you talking about how the plugin code is authored?
It would be great to typescript-jsdoc annotate the entire plugin. The first form, however, can also be annotated and is superior to the second form.
are you talking about how the plugin code is authored?
Yes, I am referring to how the plugin code is authored.
The former doesn't seem to provide type checking, so I proposed the latter.
Similar issue: https://github.com/microsoft/TypeScript/issues/47107
oof, that's terrible.
i'd want one commit that adds all the annotations, and another that refactors from module.exports = { … }
to const config = { … }; module.exports = config;
, so i can easily revert that commit in the future when TS fixes themselves.
Would it be feasible to enhance the strictness of type checking?
I suggest modifying the code from:
to:
This change aims to improve type checking by specifying the type explicitly using JSDoc annotations.
I have checked existing PRs and issues but couldn't find a similar proposal being addressed. If this is already in progress, we apologize for the redundancy.