@carlwr/zsh-lexicon
    Preparing search index...

    Interface JobSpecDoc

    What every record carries: its category, its lexicon identity and its surface form — the structural identity invariant. A record is its own identity unit wherever it goes: off its lexicon map, on a resolver hit, in the JSON. DocRecordMap[DocCategory] discriminates on category.

    Not here, but by convention: a category with a sub-facet — an operator's arity, an option's or a widget's manual section, a parameter's scope — declares it as subKind with a closed literal union; a category without one declares no subKind. Both are read as fields; under a generic K, "subKind" in rec narrows.

    interface JobSpecDoc {
        category: "job_spec";
        id: Documented<"job_spec">;
        display: string;
        sig: string;
        desc: string;
        subKind: JobSpecKind;
    }

    Hierarchy (View Summary)

    Index
    category: "job_spec"

    The record's category — the Lexicon map it sits in; in the JSON, its file. One constant per record definition.

    id: Documented<"job_spec">

    The record's lexicon key: a shell-safe slug — printable ASCII without whitespace, non-empty.

    display: string

    Surface form for display: printable ASCII with spaces, non-empty. The id unless the manual's form differs from it:

    • normalized in the id: an option's AUTO_CD
    • not shell-safe: a redirection's > word, a history modifier's h [ digits ]
    • with argument markers: a flag's j:string:
    sig: string

    Usage signature from the upstream zsh manual.

    desc: string

    Manual prose as markdown — paragraphs, inline and fenced code; occasionally *emphasis*, bullets or a heading. Every desc field has this shape.

    subKind: JobSpecKind