Fix the typing for core.peerConnection