Built-In Types
Null

Null

A value can conform to a boolean IFF it is null.

This base type isn't very helpful, but can be combined with Union types to create more complex types. See Nullable for an example.

Usage

import { T } from "type-guarder";
 
T.Null().conforms(null); // true
T.Null().conforms(undefined); // false
T.Null().conforms("Hello, world!"); // false