Define New Array In Typescript Compiler Npm React Router Dom 6