interface ImportDeclaration {
    assertions?: null | ImportAttribute[];
    attributes?: null | ImportAttribute[];
    end?: null | number;
    extra?: Record<string, unknown>;
    importKind?: null | "value" | "type" | "typeof";
    innerComments?: null | Comment[];
    leadingComments?: null | Comment[];
    loc?: null | SourceLocation;
    module?: null | boolean;
    phase?: null | "source" | "defer";
    range?: [number, number];
    source: StringLiteral;
    specifiers: (ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier)[];
    start?: null | number;
    trailingComments?: null | Comment[];
    type: "ImportDeclaration";
}

Hierarchy (view full)

Properties

assertions?: null | ImportAttribute[]
attributes?: null | ImportAttribute[]
end?: null | number
extra?: Record<string, unknown>
importKind?: null | "value" | "type" | "typeof"
innerComments?: null | Comment[]
leadingComments?: null | Comment[]
loc?: null | SourceLocation
module?: null | boolean
phase?: null | "source" | "defer"
range?: [number, number]
start?: null | number
trailingComments?: null | Comment[]
type: "ImportDeclaration"