Type Alias Nil<T>

Nil: Nullable<T> | undefined

Defines a value as either the generic source type, null or undefined.

Type Parameters

  • T

    Generic source type.

import type { Nil } from '@amjs/js-utils';

type Sth = Nil<string>; // typeof Sth = 'string | null | undefined'