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
The generator seems to remove the type import keyword from the source, this can be troublesome for projects that have verbatimModuleSyntax enabled:
error TS1484: 'MyType' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
I'd be happy to take a stab at this issue if there isn't anything I can use to get this working. Both the project that's compiling this has the type, and the project using the type has verbatimModuleSyntax enabled.
Input code
importtype{MyType}from"@my-internal-lib/some-type";exporttypeMyExportedType={property: MyType;};declare global {// type augmentation}
Expected output
importtype{MyType}from"@my-internal-lib/some-type";exporttypeMyExportedType={property: MyType;};declare global {// type augmentation}
Actual output
import{MyType}from"@my-internal-lib/some-type";exporttypeMyExportedType={property: MyType;};declare global {// type augmentation}
Hm, actually, if it just about imports, it could be different issue and probably can be solved separately. I'll check in couple of days what we can do.
Bug report
The generator seems to remove the
type
import keyword from the source, this can be troublesome for projects that haveverbatimModuleSyntax
enabled:I'd be happy to take a stab at this issue if there isn't anything I can use to get this working. Both the project that's compiling this has the type, and the project using the type has
verbatimModuleSyntax
enabled.Input code
Expected output
Actual output
Additional context
I am using the JS API and here are my options:
The text was updated successfully, but these errors were encountered: