Skip to content

Commit 2f48ff3

Browse files
committed
refactor(spelling): correct misspelled response
1 parent 3c123b6 commit 2f48ff3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/harness/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ namespace ts.server {
290290
const args: protocol.FileLocationRequestArgs = this.createFileLocationRequestArgs(fileName, position);
291291

292292
const request = this.processRequest<protocol.DefinitionRequest>(CommandNames.DefinitionAndBoundSpan, args);
293-
const response = this.processResponse<protocol.DefinitionInfoAndBoundSpanReponse>(request);
293+
const response = this.processResponse<protocol.DefinitionInfoAndBoundSpanResponse>(request);
294294
const body = Debug.assertDefined(response.body); // TODO: GH#18217
295295

296296
return {

src/server/protocol.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,10 +918,13 @@ namespace ts.server.protocol {
918918
body?: FileSpanWithContext[];
919919
}
920920

921-
export interface DefinitionInfoAndBoundSpanReponse extends Response {
921+
export interface DefinitionInfoAndBoundSpanResponse extends Response {
922922
body?: DefinitionInfoAndBoundSpan;
923923
}
924924

925+
/** @deprecated Use `DefinitionInfoAndBoundSpanResponse` instead. */
926+
export type DefinitionInfoAndBoundSpanReponse = DefinitionInfoAndBoundSpanResponse;
927+
925928
/**
926929
* Definition response message. Gives text range for definition.
927930
*/

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6626,9 +6626,11 @@ declare namespace ts.server.protocol {
66266626
interface DefinitionResponse extends Response {
66276627
body?: FileSpanWithContext[];
66286628
}
6629-
interface DefinitionInfoAndBoundSpanReponse extends Response {
6629+
interface DefinitionInfoAndBoundSpanResponse extends Response {
66306630
body?: DefinitionInfoAndBoundSpan;
66316631
}
6632+
/** @deprecated Use `DefinitionInfoAndBoundSpanResponse` instead. */
6633+
type DefinitionInfoAndBoundSpanReponse = DefinitionInfoAndBoundSpanResponse;
66326634
/**
66336635
* Definition response message. Gives text range for definition.
66346636
*/

0 commit comments

Comments
 (0)