Skip to content

@salesforce/b2c-tooling-sdk / config / MaybePromise

Type Alias: MaybePromise<T> ​

MaybePromise<T> = T | Promise<T>

Defined in: packages/b2c-tooling-sdk/src/config/types.ts:26

A value that may be synchronous or a Promise.

Used in the ConfigSource interface so that sources can return results either synchronously or asynchronously. The resolver normalizes both forms with await.

Type Parameters ​

T ​

T

Released under the Apache-2.0 License.