• shape_warrior_t@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months 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.