fix some minor issues in the typescript definition
Merge pull request #1146 from englercj/improve-ts-def

fix some minor issues in the typescript definition