Skip to content

nullableFilled

Builds an EitherRight<"nullable"> for a non-null value.

Interactive example

Syntax

typescript
function nullableFilled<
	const GenericInput extends unknown
>(
  input: GenericInput
): EitherNullableFilled<GenericInput>;

Parameters

  • input: Defined value.

Return value

An EitherNullableFilled representing the “present” state.

See also

Released under the MIT license.