Package Version: _______
Due to this typescript compiler does not fail the build if newer ES features are used while targeting older ES runtimes.
Screenshots
Enabling "explainFiles" in typescript configs shows @types/node is added by 'node_modules/@azure/ms-rest-js/es/lib/webResource.d.ts' file.


To Reproduce
- Go to replit (https://replit.com/@mashenoy/ms-rest-js-sample) (You will need to fork the repl)
- Run
./node_modules/.bin/tsc -p tsconfig.json in the shell.
@types/node types is added by node_modules/@azure/ms-rest-js/es/lib/webResource.d.ts file (shown by explain files tsc compiler option)
Expected behavior
@azure/ms-rest-js should not pollute lib definitions of consuming applications.
Package Version: _______
Describe the bug
Adding
@azure/ms-rest-packageautomatically adds@types/nodetype definitions. We are working on a React/Typescript project which targets es5 and addingms-rest-jsreference internally pulls in @types/node which pulls in library definitions for es2018Due to this typescript compiler does not fail the build if newer ES features are used while targeting older ES runtimes.
Screenshots
Enabling "explainFiles" in typescript configs shows @types/node is added by 'node_modules/@azure/ms-rest-js/es/lib/webResource.d.ts' file.
To Reproduce
./node_modules/.bin/tsc -p tsconfig.jsonin the shell.@types/nodetypes is added bynode_modules/@azure/ms-rest-js/es/lib/webResource.d.tsfile (shown by explain files tsc compiler option)Expected behavior
@azure/ms-rest-jsshould not pollute lib definitions of consuming applications.