form-graph
    Preparing search index...

    Type Alias Rule<State, Ext, V>

    Rule: (
        value: V,
        ctx: RuleCtx<State, Ext>,
    ) => Record<string, unknown> | undefined | void

    One rule: fires when its record key is in the patch. value is the patch value at that key — the patch itself is untyped, so the parameter annotation is the author's claim about what the key holds. Return the keys to add to the patch, or nothing.

    Type Parameters

    • State
    • Ext = unknown
    • V = unknown

    Type Declaration

      • (value: V, ctx: RuleCtx<State, Ext>): Record<string, unknown> | undefined | void
      • Parameters

        Returns Record<string, unknown> | undefined | void