fix(types): type humanConfig properly (#151)

This commit is contained in:
Eternal
2026-04-12 22:58:48 +02:00
committed by GitHub
parent f5e242a160
commit f164c1c874
5 changed files with 75 additions and 28 deletions
+4 -2
View File
@@ -2,6 +2,8 @@
* Shared types for cloakbrowser launch wrappers.
*/
import type { HumanConfig, HumanPreset } from "./human/config.js";
export interface LaunchOptions {
/** Run in headless mode (default: true). */
headless?: boolean;
@@ -27,9 +29,9 @@ export interface LaunchOptions {
/** Enable human-like mouse, keyboard, and scroll behavior. */
humanize?: boolean;
/** Human behavior preset: 'default' or 'careful'. */
humanPreset?: 'default' | 'careful';
humanPreset?: HumanPreset;
/** Override individual human behavior parameters. */
humanConfig?: Record<string, unknown>;
humanConfig?: Partial<HumanConfig>;
}
export interface LaunchContextOptions extends LaunchOptions {