Typescript Get Type From Array To Dataframe