@adobe/data - v0.10.30
    Preparing search index...

    Type Alias ToAsyncTransactionFn<T>

    ToAsyncTransactionFn: T extends {
        (arg: AsyncArgsProvider<Input>): Promise<R>;
        (arg: any): any;
    }
        ? (arg: AsyncArgsProvider<Input>) => Promise<R>
        : never

    Extracts the AsyncArgsProvider-arg overload from a ToTransactionFunctions entry as a single-signature function. TypeScript's structural assignment and Parameters / ReturnType see only the last overload of an overloaded function type, which hides the async-provider overload when a transaction is passed by value (e.g. as a prop). This helper recovers the async-provider signature without forcing consumers to copy/paste the Input shape.

    Type Parameters

    • T