Type Alias Nullable<T>

Nullable: T | null

Defines a value as the generic source type or null.

Type Parameters

  • T

    Generic source type.

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

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