Typescript Type For Array Javascript Example External