MCPcopy Create free account
hub / github.com/arctic-cli/interface / type

Function type

packages/ui/src/components/typewriter.tsx:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 const type = () => {
30 if (i < text.length) {
31 setStore("displayed", text.slice(0, i + 1))
32 i++
33 timeouts.push(setTimeout(type, getTypingDelay()))
34 } else {
35 setStore("typing", false)
36 timeouts.push(setTimeout(() => setStore("cursor", false), 2000))
37 }
38 }
39
40 timeouts.push(setTimeout(type, 200))
41

Callers

nothing calls this directly

Calls 2

getTypingDelayFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected