Microsoft/TypeScript — pull request #466 by sparecycles (2014-08-16 03:18:09+00:00)
Title: fix --declaration typechecking (complex case)

This fixes generation of typescriptServices.d.ts,
although this is not a current requirement
( https://github.com/Microsoft/TypeScript/issues/465 ).

I don't have a unit test yet. But I wanted to share this now.