Type Is Not Assignable To Type Boolean