Skip to content

Maybe

Type for values that can be T, undefined, or null.

Available since v1.9.0

import type { Maybe } from '@helpers4/type';
// or, from the all-in-one package (same code, one install):
import type { Maybe } from 'helpers4/type';
type Maybe<T> = T | undefined | null

View source on GitHub