Skip to content

Commit 9df0972

Browse files
authored
chore: Add deprecated marker to old elicitInput overload (#1142)
1 parent 4318933 commit 9df0972

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,14 @@ export class Server<
345345
async elicitInput(params: ElicitRequestURLParams, options?: RequestOptions): Promise<ElicitResult>;
346346
/**
347347
* Creates an elicitation request for the given parameters.
348+
* @deprecated Use the overloads with explicit `mode: 'form' | 'url'` instead.
348349
* @param params The parameters for the form elicitation request (legacy signature without mode).
349350
* @param options Optional request options.
350351
* @returns The result of the elicitation request.
351352
*/
352353
async elicitInput(params: LegacyElicitRequestFormParams, options?: RequestOptions): Promise<ElicitResult>;
354+
355+
// Implementation (not visible to callers)
353356
async elicitInput(
354357
params: LegacyElicitRequestFormParams | ElicitRequestFormParams | ElicitRequestURLParams,
355358
options?: RequestOptions

0 commit comments

Comments
 (0)