Typescript String Is Not Assignable To Union Type