type
Defines a custom object type.
Target
Signature
1define name => type { ... }Defines a custom object type.
type is part of the core language syntax. type belongs to the object model. Use type constraints to document the value you expect and member syntax when behavior naturally belongs to an object.
Examples
Basic call
1define thing => type { data public name::string }The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.