Javascript Type Undefined Is Not Assignable To Type

Javascript Type Undefined Is Not Assignable To Type