Typescript Union Type From String To Binary