Javascript Type Undefined Is Not Assignable To Type String When

Javascript Type Undefined Is Not Assignable To Type String When