Typescript Type Of Array In Javascript