Type alias ApiMethod<Options, Data>

ApiMethod<Options, Data>: ((options) => Promise<Data>)

Type Parameters

Type declaration

    • (options): Promise<Data>
    • Generic signature of API methods exported by commerce-sdk-isomorphic

      Parameters

      • options: Options

      Returns Promise<Data>