From 3e6086910c06b27fb8ef1fa6a376e52450d8a078 Mon Sep 17 00:00:00 2001 From: ColumbusLabs <287001685+ColumbusLabs@users.noreply.github.com> Date: Fri, 24 Jul 2026 17:47:48 -0400 Subject: [PATCH] fix(typescript): export ServerManagerOptions --- sdks/typescript/index.ts | 1 + sdks/typescript/tests/public-exports.test.ts | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/sdks/typescript/index.ts b/sdks/typescript/index.ts index 63d78dd1..5e7b576b 100644 --- a/sdks/typescript/index.ts +++ b/sdks/typescript/index.ts @@ -35,6 +35,7 @@ export type { Ticker, Tickers, OHLCV, Market as FeedMarket, OracleRound, FeedCli export { Router } from "./pmxt/router.js"; export type { RouterOptions } from "./pmxt/router.js"; export { ServerManager } from "./pmxt/server-manager.js"; +export type { ServerManagerOptions } from "./pmxt/server-manager.js"; export { HOSTED_URL, LOCAL_URL, diff --git a/sdks/typescript/tests/public-exports.test.ts b/sdks/typescript/tests/public-exports.test.ts index 4967674b..84a80f4a 100644 --- a/sdks/typescript/tests/public-exports.test.ts +++ b/sdks/typescript/tests/public-exports.test.ts @@ -1,5 +1,6 @@ import * as pmxt from '../index'; import { FeedClient as DirectFeedClient } from '../pmxt/feed-client'; +import type { ServerManagerOptions } from '../index'; describe('public exports', () => { it('exports FeedClient as a top-level named export', () => { @@ -27,4 +28,14 @@ describe('public exports', () => { expect(exchange).toBeInstanceOf(pmxt.PolymarketUS); expect(exchange.exchangeName).toBe('polymarket_us'); }); + + it('exports ServerManagerOptions for typed constructor configuration', () => { + const options: ServerManagerOptions = { + baseUrl: 'http://localhost:4123', + maxRetries: 2, + retryDelayMs: 10, + }; + + expect(new pmxt.ServerManager(options)).toBeInstanceOf(pmxt.ServerManager); + }); });