Read arguments from command line - error TS2304: Cannot find name 'process'
<p>Using TypeScript version 1.7.5.</p>

<p>I am writing a nodeJS program in which I want to read in command line arguments passed by the user (2 integers). Everything works fine in raw JavaScript, but an issue arises with TypeScript.</p>

<p>When <pre>process.argv</pre> is used in the TypeScript file, when it is compiled to JavaScript the compiler errors because it does not recognize the "process" variable.</p>

<pre>error TS2304: Cannot find name 'process'</pre>

<p>I have tried declaring a new var "process" at the top of the file, but that overrides the native variable and it no longer contains the arguments...</p>

<p>I would like to keep all my code all in TypeScript, only compiling to JavaScript at build time. What is the best workaround for this issue?</p>