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?
readonlyoptionalchildren?: readonlyLoopSpec[]
description?
readonlyoptionaldescription?:string
id
readonlyid:string
segments
readonlysegments: readonlyLoopSegmentSpec[]
trigger
readonlytrigger:string