proposit-core
    Preparing search index...

    Interface TClaimConnectionLookup<TConn>

    Narrow read-only interface for claim-connection lookups. Implemented by ClaimCitationLibrary and ClaimAxiomLibrary.

    A claim connection is a directional support edge between two claims. The supported endpoint lives at claimId; the endpoint that supplies the support lives at supportingClaimId. Specializations (citation vs. axiom) differ in which library they live in and what type the supporting-side claim must have.

    interface TClaimConnectionLookup<
        TConn extends TCoreClaimConnection = TCoreClaimConnection,
    > {
        get(id: string): TConn | undefined;
        getConnectionsForClaim(claimId: string): TConn[];
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Methods

    • Returns all connections where the given claim is the supported endpoint (i.e. the claimId side of the edge).

      Parameters

      • claimId: string

        The supported claim ID to filter by.

      Returns TConn[]

      An array of matching connections.