Skip to main content

Function: getMappingValueAsSequence()

function getMappingValueAsSequence(
mapping: YAMLMapping,
key: string
): YAMLSequence | null;

Defined in: _internal/workflow-yaml.ts:143

Resolve a mapping child by key, ensuring the value is a sequence.

Parametersโ€‹

mappingโ€‹

YAMLMapping

keyโ€‹

string

Returnsโ€‹

YAMLSequence | null