refactor: lint cleanups and helpers

This commit is contained in:
Peter Steinberger
2025-12-23 00:28:40 +00:00
parent f5837dff9c
commit 918cbdcf03
39 changed files with 679 additions and 338 deletions

View File

@@ -5,6 +5,12 @@ import type {
} from "./client-actions-types.js";
import { fetchBrowserJson } from "./client-fetch.js";
export type BrowserFormField = {
ref: string;
type: string;
value?: string | number | boolean;
};
export type BrowserActRequest =
| {
kind: "click";
@@ -28,7 +34,7 @@ export type BrowserActRequest =
| { kind: "select"; ref: string; values: string[]; targetId?: string }
| {
kind: "fill";
fields: Array<Record<string, unknown>>;
fields: BrowserFormField[];
targetId?: string;
}
| { kind: "resize"; width: number; height: number; targetId?: string }