Outlining: Fixes for TypeScript.
Merge pull request #533 from am11/master

Outlining: Fixes for TypeScript