Type Alias IsNullable<T>
Type Parameters
Example: Usage
import { assertType, IsNullable } from "@std/testing/types";
assertType<IsNullable<string | null>>(true);
assertType<IsNullable<string | undefined>>(true);
assertType<IsNullable<null | undefined>>(true);
assertType<IsNullable<string>>(false);
assertType<IsNullable<any>>(false);
assertType<IsNullable<never>>(false);
Checks if type
Tis possibly null or undefined.