fix some minor issues in the typescript definition

Noticed some issues in the typescript definition, just wanted to fix those up.