Function inconvertibleInAspect

  • Creates an aspect applied to control with known inconvertible instance.

    When converted to another control with the same value, an aspect instance remains as is.

    When converted to another control with another value, an aspect instance replaced by null.

    Type Parameters

    • TValue

      Input value type.

    • TInstance

      Aspect instance type.

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

      Aspect application kind.

    Parameters

    • control: InControl<TValue>

      Target control to apply an aspect to.

    • aspectKey: Key<null | TInstance, TKind>

      Applied aspect key.

    • instance: null | TInstance = null

      Known aspect instance type. Defaults to null.

    Returns Applied<TValue, TInstance | null>

    Applied input aspect.

Generated using TypeDoc