Interface RuleContext<TInput, TOutput>

interface RuleContext<TInput, TOutput> {
    input: ReadonlyDeep<TInput>;
    output: readonly ReadonlyDeep<TOutput>[];
}

Type Parameters

  • TInput
  • TOutput

Properties

Properties

input: ReadonlyDeep<TInput>

Input is immutable, rules must not modify it.

output: readonly ReadonlyDeep<TOutput>[]

Output is immutable, do not modify existing items, only append using appendOutput.