Update with typescript syntax.
Merge pull request #24 from Powpow-Shen/master

Update with typescript syntax.