Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdks/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 11 additions & 0 deletions sdks/typescript/tests/public-exports.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down Expand Up @@ -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);
});
});