Function: getContract()

August 8, 2026 ยท View on GitHub

@plures/praxis


@plures/praxis / index / getContract

Function: getContract()

getContract(meta?): Contract | undefined

Defined in: packages/praxis-core/src/decision-ledger/types.ts:180

Extract contract from rule/constraint metadata.

Parameters

meta?

Record<string, unknown>

The meta object from a rule or constraint descriptor

Returns

Contract | undefined

The attached Contract if present and valid, or undefined

Contents

  1. 1Parameters
  2. 1.1meta?
  3. 2Returns