ts-morph-structures

Home > ts-morph-structures > ImportDeclarationImpl

ImportDeclarationImpl class

Signature:

export default class ImportDeclarationImpl implements ImportDeclarationStructureClassIfc 

Implements: ImportDeclarationStructureClassIfc

Constructors

Constructor Modifiers Description
(constructor)(moduleSpecifier)   Constructs a new instance of the ImportDeclarationImpl class

Properties

Property Modifiers Type Description
attributes?   ImportAttributeImpl[] (Optional)
defaultImport?   string (Optional)
isTypeOnly   boolean  
kind readonly StructureKind.ImportDeclaration  
leadingTrivia readonly stringOrWriterFunction[]  
moduleSpecifier   string  
namedImports readonly (ImportSpecifierImpl | stringOrWriterFunction)[]  
namespaceImport?   string (Optional)
trailingTrivia readonly stringOrWriterFunction[]  

Methods

Method Modifiers Description
clone(source) static  
toJSON()