Skip to main content
Version: v0.0.2

Interface: DefineLoopSpecInput

Input shape accepted by defineLoopSpec. children is optional; LoopSpec.children always materializes as a frozen [] when omitted so consumer code can iterate without an ?? [] guard.

Example

import type { DefineLoopSpecInput } from "@cosyte/x12";
const input: DefineLoopSpecInput = {
id: "2110",
trigger: "SVC",
segments: [{ id: "SVC", usage: "required", max: 1 }],
};

Properties

children?

readonly optional children?: readonly LoopSpec[]


description?

readonly optional description?: string


id

readonly id: string


segments

readonly segments: readonly LoopSegmentSpec[]


trigger

readonly trigger: string