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
When using ImportSpecifierStructure the structure doesn't contain the isTypeOnlyFlag, this prevents you from creating Type Only Named Imports.
The same issue is also contained in the addImportDeclaration function. You can add Named Imports, but not type only ones.
Version: 16.0.0
To Reproduce
import{Project}from"ts-morph";constproject=newProject();constsourceFile=project.createSourceFile("test.ts",``);sourceFile.addImportDeclaration({moduleSpecifier: "test",namedImports: [{// this is missingisTypeOnly: true,name: "test",},],});
isTypeOnly should be defineable for Named Imports.
Thanks!
The text was updated successfully, but these errors were encountered:
When using
ImportSpecifierStructure
the structure doesn't contain theisTypeOnlyFlag
, this prevents you from creating Type Only Named Imports.The same issue is also contained in the
addImportDeclaration
function. You can add Named Imports, but not type only ones.Version: 16.0.0
To Reproduce
isTypeOnly
should be defineable for Named Imports.Thanks!
The text was updated successfully, but these errors were encountered: