A transformer that also supports an else function that can be used when the transformer would otherwise skip a value (e.g. if isDefined is being used).

interface TransformerWithElse {
    else(value: any): ConvertFunction;
    (newValue: any, context: Context): any;
}

Hierarchy (View Summary)

  • Parameters

    Returns any

Methods

Methods

  • Transformer that either invokes the given value (if its a function) or simply returns it.

    Parameters

    • value: any

      function or plain value in the

    Returns ConvertFunction