• shape_warrior_t@programming.dev
    link
    fedilink
    English
    arrow-up
    22
    ·
    14 hours ago

    I would certainly rather see this than {isAdmin: bool; isLoggedIn: bool}. With boolean | null, at least illegal states are unrepresentable… even if the legal states are represented in an… interesting way.