Skip to content

Kiln API / kiln / Condition

Type Alias: Condition ​

ts
type Condition = (ctx) => boolean & object;

A run condition: ({ res }) => res.get(Score).value > 10. Checked before each run of each system it gates; false skips that run. label is how kiln describe shows it.

Type Declaration ​

label? ​

ts
optional label?: string;