Skip to content

Commit 2986d89

Browse files
committed
refactor: rename deprecated wait func
1 parent e968a9e commit 2986d89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/run-script.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
parseJsJson,
2222
readFilenamesRecursiveSync,
2323
toDateTime,
24-
wait,
24+
sleep,
2525
beforeShutdown, shutdown,
2626
EventEmitter,
2727
} from '@isdk/ai-tool'
@@ -691,7 +691,7 @@ export const keypressTimeout = 5
691691
export async function typeToPrompt(prompt: any, input: string) {
692692
for (const char of input) {
693693
await prompt.keypress(char)
694-
await wait(keypressTimeout+ 10)
694+
await sleep(keypressTimeout+ 10)
695695
}
696696
}
697697

0 commit comments

Comments
 (0)