Quick fix to convert @typedef to type or interface #31500
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Search Terms
typedef quickfix
typedef jsdoc
Suggestion
I have lots of code in an old Closure Compiler-style project that looks like this:
If I declare a variable with this type, I can see that TypeScript understands the
@typedef
:I'd like to convert this to a
type
orinterface
. I can introduce a dummy variable, copy the TS-styletype
declaration and paste it in to do the conversion.But it'd be easier if there were a quickfix!
Use Cases
Migrating a project that used JSDoc-based typing. A workaround is available, but a quickfix would be a big improvement.
Examples
(see above)
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: