function
mapBlockTypes
Project a container's placement views lazily, preserving its compact selection.
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.