Skip to content

ExtensionDefinition

Defined in: packages/core/src/extensions/registry.ts:36

How a registered namespace is validated and shaped.

Type ParameterDefault type
Tunknown
PropertyTypeDescriptionDefined in
normalize?(value) => unknownReshape a validated block before a consumer receives it. Remarks This is where an authoring shorthand becomes the canonical form the rest of the host expects — map-party’s filterableProperties: [boro, dba] expanding to [{property, label}] is the concrete case. Runs only after validation, so it always sees a well-typed block. Declaring it here rather than leaving each consumer to normalize is the point: one rule, stated once, applied everywhere the block is read.packages/core/src/extensions/registry.ts:50
schemaZodType<T>Validates a block in this namespace. A block that fails is dropped.packages/core/src/extensions/registry.ts:38