@jiminp/tooltool
    Preparing search index...

    Type Alias Nullable<T>

    Nullable: T | Nullish

    Utility type that extends a type to also accept null or undefined.

    Type Parameters

    • T

      The base type to make nullable

    const name: Nullable<string> = null;
    const age: Nullable<number> = undefined;
    const user: Nullable<User> = { id: 1, name: 'Alice' };