ordinary_declaration.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.5/ordinary_declaration.bend as Ordinary_declaration
1 import
import Base
Types
type Declaration source · line 7 · raw
@-S:Data -> @-P:Type -> Data
One nominal ordinary schema declaration shared by component grants and gates. No storage/runtime imports and no user debug metadata adapter. Schema-scoped component declaration binding a key to payload type P. This Data value owns no component instance; keys must remain collision-free within a validated schema. It is not a runtime entity/world authority.
Declaration@-S:Data -> @-P:Type -> @key:String -> Declaration<S, P>
Templates
template component source · line 12 · raw
@-S:Data -> @-P:Type -> @key:String -> Declaration<S, P>
Declare a component key for payload P in schema S. Does not create storage, spawn entities or validate collisions; compose and validate the schema before attaching an App. Example: examples/scheduled-health/registration.bend identities.
template key source · line 15 · raw
@-S:Data -> @-P:Type -> @declaration:Declaration<S, P> -> String
Return the authored component key without accessing any world or payload.