fixing some typescript definitions

Fixed Typescript definitions