()
| 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 |
nothing calls this directly
no test coverage detected