Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// $ExpectType Node || ChildNode
const node = element.previousSibling!;
// $ExpectType Range
const range = document.createRange();
// --------------
// $ExpectType DOMRect | undefined
dom.computeCaretRect();
// $ExpectType boolean
dom.documentHasSelection();
// $ExpectType Element[]
dom.focus.focusable.find(element);
// $ExpectType Element[]
dom.focus.tabbable.find(element);
// $ExpectType boolean
dom.focus.tabbable.isTabbableIndex(element);
// $ExpectType Element | null
dom.getOffsetParent(node);
// $ExpectType DOMRect
dom.getRectangleFromRange(range);
// $ExpectType Element | undefined
dom.getScrollContainer(element);
// $ExpectType Range
const range = document.createRange();
// --------------
// $ExpectType DOMRect | undefined
dom.computeCaretRect();
// $ExpectType boolean
dom.documentHasSelection();
// $ExpectType Element[]
dom.focus.focusable.find(element);
// $ExpectType Element[]
dom.focus.tabbable.find(element);
// $ExpectType boolean
dom.focus.tabbable.isTabbableIndex(element);
// $ExpectType Element | null
dom.getOffsetParent(node);
// $ExpectType DOMRect
dom.getRectangleFromRange(range);
// $ExpectType Element | undefined
dom.getScrollContainer(element);
// $ExpectType void
dom.insertAfter(node, node);