Pattern Matching with TS To run the project simply do npm install and then npx tsc --project tsconfig.json. After which, you can run the code using node pattern-match.js