News for hackers. Stuff that matters.
Re:All JavaScript and TypeScript features of the last 3 year... by itslennysfault on Friday March 10, 2023 @11:18AM (#35096391)
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
    }

There are no comments on this comment yet.