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

Function preview

frontend/src/ts/controllers/theme-controller.ts:123–129  ·  view source on GitHub ↗
(
  themeIdentifier: ThemeIdentifier,
  customColorsOverride?: CustomThemeColors,
)

Source from the content-addressed store, hash-verified

121let previewState: PreviewState = null;
122
123export function preview(
124 themeIdentifier: ThemeIdentifier,
125 customColorsOverride?: CustomThemeColors,
126): void {
127 previewState = { theme: themeIdentifier, colors: customColorsOverride };
128 debouncedPreview();
129}
130
131const debouncedPreview = debounce<() => void>(250, () => {
132 if (previewState) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected