Developer Preview — This project is in active development. APIs may change. Provide feedback
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: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

Released under the Apache-2.0 License.