Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / cli / DispatchBranches

Interface: DispatchBranches<S, T>

Defined in: packages/b2c-tooling-sdk/src/compat/dispatcher.ts:66

Branches passed to BackendDispatcher.run: one async function per backend. The SCAPI branch receives a non-null ops bundle (S) so callers don't need non-null assertions. The OCAPI branch receives no argument — it should call the OCAPI free functions directly with whatever instance handle the caller has.

Type Parameters

S

S

T

T

Properties

ocapi()

ocapi: () => Promise<T>

Defined in: packages/b2c-tooling-sdk/src/compat/dispatcher.ts:68

Returns

Promise<T>


scapi()

scapi: (ops) => Promise<T>

Defined in: packages/b2c-tooling-sdk/src/compat/dispatcher.ts:67

Parameters

ops

S

Returns

Promise<T>

Released under the Apache-2.0 License.