Skip to content

Commit a7e1f20

Browse files
committed
refactor: move waitForEventsAfterAction from Context to ContextPage interface
1 parent 5c78734 commit a7e1f20

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/tools/ToolDefinition.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ export type Context = Readonly<{
168168
data: Uint8Array<ArrayBufferLike>,
169169
filename: string,
170170
): Promise<{filename: string}>;
171-
waitForEventsAfterAction(
172-
action: () => Promise<unknown>,
173-
options?: {timeout?: number},
174-
): Promise<void>;
175171
waitForTextOnPage(
176172
text: string[],
177173
timeout?: number,
@@ -208,6 +204,10 @@ export type ContextPage = Readonly<{
208204

209205
getDialog(): Dialog | undefined;
210206
clearDialog(): void;
207+
waitForEventsAfterAction(
208+
action: () => Promise<unknown>,
209+
options?: {timeout?: number},
210+
): Promise<void>;
211211
}>;
212212

213213
export function defineTool<Schema extends zod.ZodRawShape>(

0 commit comments

Comments
 (0)