@maverickcer/env-cap
    Preparing search index...

    Interface ContractRef

    The one shape every model in this package uses to point at a declared contract: the file it's declared in, and the binding it's exported as. Nothing else -- see ADR 0039.

    Deliberately not carrying contractName. A display name is a rendering concern, resolved on demand from ContractModel (the one model that owns it) by whichever renderer actually needs prose; duplicating it onto every reference made it a second, independently-stale copy of a fact that can change under a documentEnv() edit. Deliberately not carrying a pre-formatted identity string either -- ${file}#${exportName} is trivially derivable, and a stored copy is one more thing that can disagree with the two fields it was built from. Code that genuinely needs a map key builds that string locally, at the point of use.

    interface ContractRef {
        exportName: string;
        file: string;
    }

    Hierarchy (View Summary)

    Index
    exportName: string

    The binding name the createEnv() result is exported as.

    file: string

    Root-relative, POSIX-separated path of the file declaring the contract -- see displayPath().