@gechiui/dom
Version:
DOM utilities module for GeChiUI.
10 lines • 378 B
TypeScript
/**
* Check whether the current document has a selection. This checks for both
* focus in an input field and general text selection.
*
* @param {Document} doc The document to check.
*
* @return {boolean} True if there is selection, false if not.
*/
export default function documentHasSelection(doc: Document): boolean;
//# sourceMappingURL=document-has-selection.d.ts.map