Type alias Maybe<Value>

Maybe<Value>: Value | undefined

Value that can be undefined.

Example

type MaybeNumber = Maybe<number>;
const maybeNumber: MaybeNumber = 1;
const notNumber: MaybeNumber = undefined;

Type Parameters

  • Value