Interface Conversion<TFrom, TTo>

Input control value conversion.

Type Parameters

  • TFrom

    Original input value type.

  • TTo

    Converted input value type.

Hierarchy

  • Conversion

Methods

Methods

  • Applies the given aspect to converted control in a custom way.

    Type Parameters

    • TInstance

      Aspect instance type.

    • TKind extends keyof InAspect.Application.Map<unknown, unknown>

      Aspect application kind.

    Parameters

    • aspect: InAspect<TInstance, TKind>

      An aspect to apply.

    Returns undefined | InAspect.Application.Result<TInstance, TTo, TKind>

    Either applied aspect instance or undefined to apply the aspect in standard way (i.e. by converting it from corresponding aspect of original control).

  • Restores original control value by converted one.

    Parameters

    • value: TTo

      A converted value to restore the original one by.

    Returns TFrom

    New value of original control.

Generated using TypeDoc