Skip to content

Commit c3cc13e

Browse files
ochafikclaude
andcommitted
refactor: remove unnecessary *Base type aliases
These were introduced in this PR but aren't needed - the base types kept their original names (Request, Notification, Result). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7c300ed commit c3cc13e

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/types.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -802,14 +802,6 @@ import type {
802802
// Re-export with original names
803803
export type { _Request as Request, _Notification as Notification, _Result as Result };
804804

805-
// Backwards-compatible aliases
806-
/** @deprecated Use Request instead */
807-
export type RequestBase = _Request;
808-
/** @deprecated Use Notification instead */
809-
export type NotificationBase = _Notification;
810-
/** @deprecated Use Result instead */
811-
export type ResultBase = _Result;
812-
813805
/* Types re-exported from generated sdk.types.ts */
814806
export type {
815807
// Union types for narrowing (Mcp prefix)

test/client/streamableHttp.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { StartSSEOptions, StreamableHTTPClientTransport, StreamableHTTPReconnectionOptions } from '../../src/client/streamableHttp.js';
22
import { OAuthClientProvider, UnauthorizedError } from '../../src/client/auth.js';
3-
import { JSONRPCMessage, JSONRPCRequest, type ResultBase } from '../../src/types.js';
3+
import { JSONRPCMessage, JSONRPCRequest, type Result } from '../../src/types.js';
44
import { InvalidClientError, InvalidGrantError, UnauthorizedClientError } from '../../src/server/auth/errors.js';
55
import { type Mock, type Mocked } from 'vitest';
66

@@ -223,7 +223,7 @@ describe('StreamableHTTPClientTransport', () => {
223223

224224
const responseMessage: JSONRPCMessage = {
225225
jsonrpc: '2.0',
226-
result: { success: true } as ResultBase,
226+
result: { success: true } as Result,
227227
id: 'test-id'
228228
};
229229

test/server/mcp.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
ListToolsResultSchema,
1616
LoggingMessageNotificationSchema,
1717
type Notification,
18-
type NotificationBase,
1918
ReadResourceResultSchema,
2019
type TextContent,
2120
UrlElicitationRequiredError,

0 commit comments

Comments
 (0)