Type alias MapT<T, A>

MapT<T, A>: Readonly<{
    descendantsCount: number;
    dom: Dom<A>;
    mapper: ((msg) => T);
    type: typeof mapSymbol;
}>

Message mapping object. Type parameter A will be existential quantified.

Type Parameters

  • T

  • A

Type declaration

  • descendantsCount: number

    Numbers of descendants.

  • dom: Dom<A>

    Source virtual DOM object that emits messages of type A.

  • mapper: ((msg) => T)
      • (msg): T
      • Maps an message from A to T.

        Parameters

        • msg: A

        Returns T

  • type: typeof mapSymbol

Generated using TypeDoc