MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / addToGlobal

Function addToGlobal

frontend/src/ts/utils/misc.ts:736–741  ·  view source on GitHub ↗
(items: Record<string, unknown>)

Source from the content-addressed store, hash-verified

734}
735
736export function addToGlobal(items: Record<string, unknown>): void {
737 for (const [name, item] of Object.entries(items)) {
738 //@ts-expect-error dev
739 window[name] = item;
740 }
741}
742
743export function getTotalInlineMargin(element: HTMLElement): number {
744 const computedStyle = window.getComputedStyle(element);

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected