type MaybeValue<T,Maybe>
Returns type T
if Maybe
is false, T | undefined
otherwise.
Definition
type MaybeValue<T, Maybe extends boolean> = Maybe extends true ? T
|
undefined : T;
type MaybeValue<T,Maybe>
Returns type T
if Maybe
is false, T | undefined
otherwise.
type MaybeValue<T, Maybe extends boolean> = Maybe extends true ? T
|
undefined : T;