chore: do not double close connection (#744)

This commit is contained in:
Yury Semikhatsky
2025-07-23 17:41:15 -07:00
committed by GitHub
parent 2c5eac89a8
commit bc120baa78
8 changed files with 60 additions and 59 deletions

7
index.d.ts vendored
View File

@@ -19,10 +19,5 @@ import type { Server } from '@modelcontextprotocol/sdk/server/index.js';
import type { Config } from './config.js';
import type { BrowserContext } from 'playwright';
export type Connection = {
server: Server;
close(): Promise<void>;
};
export declare function createConnection(config?: Config, contextGetter?: () => Promise<BrowserContext>): Promise<Connection>;
export declare function createConnection(config?: Config, contextGetter?: () => Promise<BrowserContext>): Promise<Server>;
export {};