MCPcopy Create free account
hub / github.com/codeaashu/claude-code / resetTypeahead

Function resetTypeahead

src/components/mcp/ElicitationDialog.tsx:31–37  ·  view source on GitHub ↗

Timer callback for enumTypeaheadRef — module-scope to avoid closure capture.

(ta: {
  buffer: string;
  timer: ReturnType<typeof setTimeout> | undefined;
})

Source from the content-addressed store, hash-verified

29
30/** Timer callback for enumTypeaheadRef — module-scope to avoid closure capture. */
31function resetTypeahead(ta: {
32 buffer: string;
33 timer: ReturnType<typeof setTimeout> | undefined;
34}): void {
35 ta.buffer = '';
36 ta.timer = undefined;
37}
38
39/**
40 * Isolated spinner glyph for a field that is being resolved asynchronously.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected