Typescript Change Value In Array Of Pointers In Cpp