Hello @akashkriz005
As of now, there is no direct way to add TypeScript dependencies using the Maven command for an AEM SPA React project creation. The Adobe archetype does not support TypeScript out of the box. however you can manually add ts to your project once after generating the project.
navigate to ui.fe folder Then -- npm install --save-dev typescript , npx tsc --init
then update your Webpack configs to typescript as extensions: [ '.tsx', '.ts', '.js' ].
Hope this Helps you.
Thanks,
Venkat