updated typescript definitions