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

Type undefined is not assignable to type