Typescript Type Based On Array Values Trim