function
mapBlockTypes
Preserve compact reference ownership when projecting schema metadata for an occurrence.
Arguments
| Argument | Type | Description |
|---|---|---|
container | T | The container value. |
map | (block: SchemaBlockType) => SchemaBlockType | The map value. |
Returns
The declared result.
TFull signature
function mapBlockTypes<T extends Container>(
container: T,
map: (block: SchemaBlockType) => SchemaBlockType,
): TRelated types
SchemaBlockTypeOne discriminated block definition.