Typescript Get Type From String