Home > Software design >  How to do an exhaustive switch statement with ambient enum types
How to do an exhaustive switch statement with ambient enum types

Time:09-10

I have the following function:

function mapPlaceToEmoji(place: Place): string {
    switch (place) {
        case Place.FIRST:
            return '           
  • Related