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

Type undefined is not assignable to type