Skip to content

Commit

Permalink
build(spec): update WebDriverBidi types (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
browser-automation-bot authored Sep 4, 2023
1 parent 80d5643 commit 54fc71f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/protocol-parser/webdriver-bidi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1153,12 +1153,12 @@ export namespace Network {
}
export const ScriptCommandSchema = z.lazy(() =>
z.union([
Script.AddPreloadScriptCommandSchema,
Script.AddPreloadScriptSchema,
Script.CallFunctionSchema,
Script.DisownSchema,
Script.EvaluateSchema,
Script.GetRealmsSchema,
Script.RemovePreloadScriptCommandSchema,
Script.RemovePreloadScriptSchema,
])
);
export const ScriptResultSchema = z.lazy(() =>
Expand Down Expand Up @@ -1893,7 +1893,7 @@ export namespace Script {
);
}
export namespace Script {
export const AddPreloadScriptCommandSchema = z.lazy(() =>
export const AddPreloadScriptSchema = z.lazy(() =>
z.object({
method: z.literal('script.addPreloadScript'),
params: Script.AddPreloadScriptParametersSchema,
Expand Down Expand Up @@ -1999,7 +1999,7 @@ export namespace Script {
);
}
export namespace Script {
export const RemovePreloadScriptCommandSchema = z.lazy(() =>
export const RemovePreloadScriptSchema = z.lazy(() =>
z.object({
method: z.literal('script.removePreloadScript'),
params: Script.RemovePreloadScriptParametersSchema,
Expand Down
8 changes: 4 additions & 4 deletions src/protocol/webdriver-bidi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -919,12 +919,12 @@ export namespace Network {
};
}
export type ScriptCommand =
| Script.AddPreloadScriptCommand
| Script.AddPreloadScript
| Script.CallFunction
| Script.Disown
| Script.Evaluate
| Script.GetRealms
| Script.RemovePreloadScriptCommand;
| Script.RemovePreloadScript;
export type ScriptResult =
| Script.AddPreloadScriptResult
| Script.EvaluateResult
Expand Down Expand Up @@ -1476,7 +1476,7 @@ export namespace Script {
export type Target = Script.RealmTarget | Script.ContextTarget;
}
export namespace Script {
export type AddPreloadScriptCommand = {
export type AddPreloadScript = {
method: 'script.addPreloadScript';
params: Script.AddPreloadScriptParameters;
};
Expand Down Expand Up @@ -1564,7 +1564,7 @@ export namespace Script {
};
}
export namespace Script {
export type RemovePreloadScriptCommand = {
export type RemovePreloadScript = {
method: 'script.removePreloadScript';
params: Script.RemovePreloadScriptParameters;
};
Expand Down

0 comments on commit 54fc71f

Please sign in to comment.