Typescript Typeerror .map Is Not A Function