Typescript Infer Type From String To Timestamp