Update TypeScript.fs

Corrected the sample in the TypeScript Docs
Merge pull request #386 from TWith2Sugars/patch-1

Corrected the sample in the TypeScript Docs