Defines a value as either the generic source type, null or undefined.
Generic source type.
import type { Nil } from '@amjs/js-utils';type Sth = Nil<string>; // typeof Sth = 'string | null | undefined' Copy
import type { Nil } from '@amjs/js-utils';type Sth = Nil<string>; // typeof Sth = 'string | null | undefined'
Defines a value as either the generic source type, null or undefined.