MCPcopy
hub / github.com/monkeytypegame/monkeytype / qs

Function qs

frontend/src/ts/utils/dom.ts:87–93  ·  view source on GitHub ↗
(
  selector: string,
)

Source from the content-addressed store, hash-verified

85 * @returns An ElementWithUtils wrapping the found element, null if not found.
86 */
87export function qs<T extends HTMLElement = HTMLElement>(
88 selector: string,
89): ElementWithUtils<T> | null {
90 checkUniqueSelector(selector);
91 const el = document.querySelector<T>(selector);
92 return el ? new ElementWithUtils(el) : null;
93}
94
95/**
96 * Query Selector All

Callers 15

applyFontFamilyFunction · 0.90
ui.tsFile · 0.90
ready.tsFile · 0.90
setupFunction · 0.90
initFunction · 0.90
activateAnalyticsFunction · 0.90
applyFunction · 0.90
applyCustomBackgroundFunction · 0.90
removeSelloutFunction · 0.90
removeOnFunction · 0.90

Calls 1

checkUniqueSelectorFunction · 0.85

Tested by

no test coverage detected