Added typings to jQuery promises and deferreds.