Skip to content

SplitPolicy

How one source's text decodes into collection elements.

  • 'whole': the source value is a single element

  • 'delimiter': split on a literal delimiter, dropping empty segments

  • 'lines': split on \n, \r\n, or \r

  • 'json': parse the text as JSON

  • Import: @kjanat/dreamcli

  • Export kind: type

  • Declared in: src/core/schema/cardinality.ts

  • Source link: src/core/schema/cardinality.ts:42

Signatures

ts
type SplitPolicy = { format: "whole"; } | { delimiter: string; format: "delimiter"; } | { format: "lines"; } | { format: "json"; };

See Also

Released under the MIT License.