Type narrowing with enum and interface map as function parameter
Why in this code the narrowing doesn’t work within the switch case in the function but it works when calling the function.
Why in this code the narrowing doesn’t work within the switch case in the function but it works when calling the function.