fixing some typescript definitions