Function cxSingle

  • Creates single-value context entry definer.

    Treats the last provided asset as entry value and ignores the rest of them.

    The entry value is evaluated at most once per context.

    Type Parameters

    • TValue

      Context value type.

    Parameters

    • byDefault: {
          byDefault?(this, target) => undefined | null | TValue;
      } = {}

      Creates default entry value. Accepts entry definition target as the only parameter.

    Returns Definer<TValue>

    New context entry definer.

Generated using TypeDoc