@metreeca/core - v0.12.0
    Preparing search index...

    Type Alias Handler<V, R>

    Handler: R | ((value: V) => R)

    Option handler.

    Either a constant value of type R, or a function that receives the matched value.

    Type Parameters

    • V = unknown

      The type of the matched option value

    • R = unknown

      The return type of the handler