Hacker News new | ask | show | jobs
by itslennysfault 1202 days ago
What about union string types?

I'd really like to be able to just do...

    type UserType = 'default' | 'admin' | 'manager';

    interface UserTypeCounts {
        [key: UserType]: number
    }