Type undefined is not assignable to type (1/11)

Type undefined is not assignable to type