@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:24
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