• invoke dynamically invokes the function, tok, which is offered by a provider plugin. invoke behaves differently in the case that options contains {async:true} or not.

    In the case where {async:true} is present in the options bag:

    1. the result of invoke will be a Promise resolved to the result value of the provider plugin.
    2. the props inputs can be a bag of computed values (including, Ts, Promise<T>s, Output<T>s etc.).

    In the case where {async:true} is not present in the options bag:

    1. the result of invoke will be a Promise resolved to the result value of the provider call. However, that Promise will also have the respective values of the Provider result exposed directly on it as properties.

    2. The inputs must be a bag of simple values, and the result is the result that the Provider produced.

    Simple values are:

    1. undefined, null, string, number or boolean values.
    2. arrays of simple values.
    3. objects containing only simple values.

    Importantly, simple values do not include:

    1. Promises
    2. Outputs
    3. Assets or Archives
    4. Resources.

    All of these contain async values that would prevent `invoke from being able to operate synchronously.

    Parameters

    Returns Promise<any>

Generated using TypeDoc