Skip to content
1 min read · 80 words

Function: lowerSegments()

ts
function lowerSegments(segments: RawSegment[]): MediaPlan;

Defined in: src/batteries/media/pipe.ts:355

Lower raw segments to an (unvalidated) MediaPlan. Quoted-JSON arg parsing and type/enum checks happen in the validator, which consumes the raw segments — this lowering exists for tooling that wants the structural plan without validation.

Parameters

ParameterTypeDescription
segmentsRawSegment[]Output of parsePipeRaw.

Returns

MediaPlan

The structural plan (args carried as parsed, json args still strings).