ExtensionDefinition
Defined in: packages/core/src/extensions/registry.ts:36
How a registered namespace is validated and shaped.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
T | unknown |
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
normalize? | (value) => unknown | Reshape 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 |
schema | ZodType<T> | Validates a block in this namespace. A block that fails is dropped. | packages/core/src/extensions/registry.ts:38 |