Update TypeScript.fs

Corrected the sample in the TypeScript Docs