Type Alias: OptionFor<O, T>
OptionFor<
O,T> =trueextendsHasPromise<O> ?OptionAsync<T> :Option<T>
Resolves to the appropriate Option type (sync or async) based on the input type.
Type Parameters
O
O
The reference type to inspect for a Promise.
T
T
The type of the Some value.