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
I'm trying to migrate a JS project (that contains JSDoc annotations) to TS project.
So far I've been able to come to a point where all my files are TS, everything compiles and the bundle is produced.
However, when I try to run JSDoc plugin and hopefully convert all the JSDoc annotations to proper TS types it doesn't really work.
This is what I do (and the output):
npx ts-migrate migrate --plugin jsdoc packages/my-project
TypeScript version: 4.9.4
Initialized tsserver project in 81ms.
Start...
[jsdoc] Plugin 1 of 1. Start...
[jsdoc] Finished in 7ms.
Finished in 7ms, for 1 plugin(s).
Writing 0 updated file(s)...
Wrote 0 updated file(s) in 1ms.
This is my tsconfig.json (located at packages/my-project):
I would expect this JSDoc to be transformed into typed signature. Did I get that wrong? Isn't it what the JSDoc plugin supposed to do? Or am I just using it the wrong way?
P.S. I also tried to use older version (as it seemed to solve the issue earlier), but it didn't help.
The text was updated successfully, but these errors were encountered:
I'm trying to migrate a JS project (that contains JSDoc annotations) to TS project.
So far I've been able to come to a point where all my files are TS, everything compiles and the bundle is produced.
However, when I try to run JSDoc plugin and hopefully convert all the JSDoc annotations to proper TS types it doesn't really work.
This is what I do (and the output):
This is my
tsconfig.json
(located atpackages/my-project
):And this is an example for one of the JSDoc annotations located in one of the files (say
packages/my-project/src/example.ts
):I would expect this JSDoc to be transformed into typed signature. Did I get that wrong? Isn't it what the JSDoc plugin supposed to do? Or am I just using it the wrong way?
P.S. I also tried to use older version (as it seemed to solve the issue earlier), but it didn't help.
The text was updated successfully, but these errors were encountered: