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

Type undefined is not assignable to type