Pike LSP TypeScript API - v0.1.0-alpha.20
    Preparing search index...

    Interface ExtractedImport

    Extracted import directive from source code

    interface ExtractedImport {
        depth?: number;
        exists?: 0 | 1;
        identifier?: string;
        is_circular?: 0 | 1;
        line: number;
        path: string;
        resolution_type?: RequireResolutionType;
        resolved_path?: string;
        skip?: 0 | 1;
        type: ImportType;
    }
    Index

    Properties

    depth?: number

    Provenance depth (0 = direct, >0 = transitive)

    exists?: 0 | 1

    Whether the file exists (0 = no, 1 = yes)

    identifier?: string

    For #require with constant(): the identifier name

    is_circular?: 0 | 1

    Part of circular dependency (0 = no, 1 = yes)

    line: number

    Line number in source

    path: string

    Original path from source

    resolution_type?: RequireResolutionType

    For #require: resolution type

    resolved_path?: string

    Resolved absolute path (if available)

    skip?: 0 | 1

    Whether to skip resolution (complex requires) (0 = no, 1 = yes)

    type: ImportType

    Import type