You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// index.js// includes any combination of @typedef {typeof import...}, lack of typeof, etc./** @typedef {import('./types').JsonPrimitive} JsonPrimitive */
The plugin fails with:
Error: Invalid docstring * @typedef {Class<import('./types').JsonPrimitive>} JsonPrimitive in /path/to/index.js
TL;DR
Don't automatically cast type declarations to class (who else does that?).
Edit: I realize this plugin was made primarily for classes, but for > 1k downloads, I'd expect it to be a bit more supportive of other types as well.
The text was updated successfully, but these errors were encountered:
If I use any combination of
with
The plugin fails with:
Error: Invalid docstring * @typedef {Class<import('./types').JsonPrimitive>} JsonPrimitive in /path/to/index.js
TL;DR
Don't automatically cast type declarations to class (who else does that?).
Edit: I realize this plugin was made primarily for classes, but for > 1k downloads, I'd expect it to be a bit more supportive of other types as well.
The text was updated successfully, but these errors were encountered: