fix typehints in ReactEventListener