(text: string)
| 8 | const prefixes = getPrefixes(); |
| 9 | const mainPrefix = prefixes[0]; |
| 10 | |
| 11 | // HTML转义函数 |
| 12 | |
| 13 | function timeoutAfter(ms: number, message: string, label: string): Promise<never> { |
| 14 | const lifecycle = tryGetCurrentGenerationContext(); |
| 15 | if (lifecycle) { |
| 16 | return lifecycle.delay(ms, { label }).then(() => { |
| 17 | throw new Error(message); |
| 18 | }); |
| 19 | } |
| 20 |
no outgoing calls
no test coverage detected