[F] getExamples
function getExamples(program, target): readonly Example[];Gets examples stored on the target in registration order, or an empty array. Returns the stored collection as readonly without copying; values remain TypeSpec values, not JSON.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
program | Program |
target | | Enum | Model | ModelProperty | Scalar | Union |
Returns
Section titled “Returns”readonly Example[]