Typescript Iterate Over Array Type