Factory for initializing binding instances

interface Factory {
    create<
        LeftPropName extends PropertyName = string,
        RightPropName extends PropertyName = string,
    >(): Binding<LeftPropName, RightPropName>;
    for<
        LeftPropName extends PropertyName = string,
        RightPropName extends PropertyName = string,
    >(
        left: Bindable<LeftPropName>,
        right: Bindable<RightPropName>,
    ): Binding<LeftPropName, RightPropName>;
    ignore(): typeof IGNORE;
    promiseValue<T>(candidate: PromiseLike<T>): any;
}

Methods

  • Produces a value which may be returned by converter functions to signal that no further processing is required.

    Returns typeof IGNORE

    ignore symbol.

  • Wraps a promise to signal that it should be handled as plain value.

    Type Parameters

    • T

    Parameters

    • candidate: PromiseLike<T>

      a promise.

    Returns any

    a wrapper for the promise.