borisyankov/DefinitelyTyped — pull request #270 by michaelgmiller (2013-02-13 00:37:27+00:00)
Title: Make require.js variable declartions ambient 

My project statically imports definition files. Since the 'require' and 'define' variables are in global scope, the non-ambient nature was causing typescript to generate "var require; var define;" at the top of the file, making the global values inaccessible. This commit fixes this issue, ensuring that the variables are defined only for typechecking purposes.