Typescript Infer Type From Array Import