Add type parameter for ref objects
Add type parameter for ref objects

All HTML elements are descendants of HTMLElement, but they also may have additional methods. For this to work right, we need the option to specify what exactly the element is expected to be.

mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped