🚧 Still under progress. Soon will be finished.

NamespaceImportNode

CLASS code

Description

Represents the reflected node of a namespace import declaration. For example: import * as foo from './foo.js'

Methods

  • getTSNode

    code
    getTSNode(): ImportDeclaration

    Returns

    ImportDeclaration:
  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getName

    code
    getName(): string

    Returns

    string:
  • getNodeType

    code
    getNodeType(): RootNodeType

    Returns

    RootNodeType:
  • getKind

    code
    getKind(): ImportKind

    Returns

    ImportKind:
  • getImportPath

    code
    getImportPath(): string

    Returns

    string:
  • getOriginalPath

    code
    getOriginalPath(): string

    Returns

    string:
  • isTypeOnly

    code
    isTypeOnly(): boolean

    Returns

    boolean:
  • isBareModuleSpecifier

    code
    isBareModuleSpecifier(): boolean

    Returns

    boolean:
  • serialize

    code

    Serializes the reflected node

    serialize(): Import

    Returns

    Import:

    The reflected node as a serializable object