UNPKG

@clipboard-health/rules-engine

Version:

A pure functional rules engine to keep logic-dense code simple, reliable, understandable, and explainable.

7 lines (6 loc) 345 B
import { type ReadonlyDeep } from "type-fest"; import { type RuleContext } from "./rule"; /** * Rule output is immutable, do not modify existing items, only append using this function. */ export declare function appendOutput<TInput, TOutput>(context: RuleContext<TInput, TOutput>, output: ReadonlyDeep<TOutput>): RuleContext<TInput, TOutput>;