def description

bendvy-ecs-core@0.1.0.4 · ordinary_recovery_declaration.bend:40

import bendvy-ecs-core@0.1.0.4/ordinary_recovery_declaration.bend as OrdinaryRecoveryDeclaration
import Base
import bendvy-ecs-core@0.1.0.4/recovery_use.bend as Use

40# Consume a declaration and return typed operational-use metadata.
41# Legacy Declaration returns an opaque description; Described returns its stored
42# description. Automatic App registration uses completeness rather than parsing
43# access strings. This projection does not validate an inverse or run recovery.
44def description(~S:Data,~State:Type,~Recovery:Type,~Ops:Type -> Type,~builder:Builder(~State,~Recovery,~Ops),value:Declaration<S,State,Recovery,Ops,builder>) -> Use.Description:
45  match value:
46    case Declaration{_,_}:Use.none()
47    case Described{_,_,description}:description

Uses (4)

Used by (3)