Home > ts-morph-structures > ImportDeclarationImpl
Signature:
export default class ImportDeclarationImpl implements ImportDeclarationStructureClassIfc
Implements: ImportDeclarationStructureClassIfc
Constructor | Modifiers | Description |
---|---|---|
(constructor)(moduleSpecifier) | Constructs a new instance of the ImportDeclarationImpl class |
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[] |
Method | Modifiers | Description |
---|---|---|
clone(source) | static |
|
toJSON() |