vigiles API reference
    Preparing search index...

    Interface PathView

    An AST-free view of a file path — the matching primitive for file tools.

    interface PathView {
        raw: string;
        under(prefixes: readonly string[]): boolean;
    }
    Index

    Properties

    Methods

    Properties

    raw: string

    Methods

    • True iff the path sits under at least one allowed prefix (e.g. "src/**").

      Parameters

      • prefixes: readonly string[]

      Returns boolean