🚧 Still under progress. Soon will be finished.

SideEffectImportNode

CLASS code

Description

Represents the reflected node of a side effect import declaration. For example: import './foo.js'

Methods

  • getTSNode

    code
    getTSNode(): ImportDeclaration

    Returns

    ImportDeclaration:
  • getNodeType

    code
    getNodeType(): RootNodeType

    Returns

    RootNodeType:
  • getKind

    code
    getKind(): ImportKind.SideEffect

    Returns

    ImportKind.SideEffect:
  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getImportPath

    code
    getImportPath(): string

    Returns

    string:
  • isBareModuleSpecifier

    code
    isBareModuleSpecifier(): boolean

    Returns

    boolean:
  • serialize

    code

    Serializes the reflected node

    serialize(): Import

    Returns

    Import:

    The reflected node as a serializable object