@gechiui/dom
Version:
DOM utilities module for GeChiUI.
11 lines • 464 B
TypeScript
/**
* Check whether the current document has any sort of selection. This includes
* ranges of text across elements and any selection inside `<input>` and
* `<textarea>` elements.
*
* @param {Document} doc The document to check.
*
* @return {boolean} Whether there is any sort of "selection" in the document.
*/
export default function documentHasUncollapsedSelection(doc: Document): boolean;
//# sourceMappingURL=document-has-uncollapsed-selection.d.ts.map