From c93d995c4e551b0787a7691fce854f660f4271c0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 10 Apr 2026 15:24:33 +0300 Subject: [PATCH] fix: make BrowserConfig typing deterministic --- src/config/browser-config.ts | 6 +++++- src/config/types.ts | 6 ------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/config/browser-config.ts b/src/config/browser-config.ts index 952ebb809..506706b34 100644 --- a/src/config/browser-config.ts +++ b/src/config/browser-config.ts @@ -3,8 +3,12 @@ import * as _ from "lodash"; import type { Test } from "../types"; import type { CommonConfig } from "./types"; +export interface BrowserConfig extends CommonConfig { + id: string; +} + export class BrowserConfig { - constructor(browserOptions: CommonConfig) { + constructor(browserOptions: CommonConfig & { id: string }) { _.extend(this, browserOptions); } diff --git a/src/config/types.ts b/src/config/types.ts index a0fd8f359..89bdbea44 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -480,9 +480,3 @@ export interface RuntimeConfig { declare module "." { export interface Config extends ConfigParsed {} } - -declare module "./browser-config" { - export interface BrowserConfig extends CommonConfig { - id: string; - } -}