@cbnsndwch/zero-sources

TableMapping type

Home > @cbnsndwch/zero-contracts > TableMapping

TableMapping type

Table mapping configuration using mutually exclusive approaches. Use EITHER legacy filter-based OR modern pipeline-based mapping, but not both.

The discriminated union ensures compile-time safety by preventing accidental mixing of the two approaches.

Signature:

type TableMapping<TTable = Dict> =
    | SimpleTableMapping<TTable>
    | PipelineTableMapping<TTable>;

References: Dict, SimpleTableMapping, PipelineTableMapping

How was this page?

On this page