Typescript Get Type In Array Literal Swift