nullishEmpty
Construit explicitement un EitherLeft<"nullish"> avec null ou undefined.
Exemple interactif
Syntaxe
typescript
function nullishEmpty<
const GenericInput extends NullishValue = undefined
>(
value?: GenericInput
): EitherNullishEmpty<GenericInput>;Paramètres
input:nullouundefined(optionnel).
Valeur de retour
EitherNullishEmpty<GenericInput> permettant de signaler explicitement l'absence de valeur.
