Logos DX
    Preparing search index...

    Type Alias NullableObject<T>

    NullableObject: { [K in keyof T]: T[K] | null }

    Makes all properties in an object nullable.

    Essential for database result types and API responses where fields can legitimately be null due to LEFT JOINs or missing data.

    Type Parameters

    • T
    interface User { id: string; email: string; profile: Profile; }
    type DatabaseUser = NullableObject<User>; // All fields can be null