Typescript Type Of Array Value