Interface When<D, A>

The type of a when condition: it contains both the predicate and the mode (ie when the predicate must be checked).

interface When {
    fn: ((i, acc) => boolean);
    type: WhenType;
}

Type Parameters

  • D

    The interaction data type

  • A

Properties

Properties

fn: ((i, acc) => boolean)

Type declaration

    • (i, acc): boolean
    • The predicate.

      Parameters

      • i: D

        The interaction data.

      • acc: Readonly<A>

      Returns boolean

type: WhenType

The type of the when

Generated using TypeDoc