Typescript String Is Not Assignable To Type