Skip to content

Commit 1526d8f

Browse files
committed
fix: tsc error after update
1 parent c0c16d9 commit 1526d8f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/plugins/intellij/api/intellijHttpResponse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import * as models from '../../../models';
22
import * as utils from '../../../utils';
33
import { ContentType, HttpResponse, ResponseHeaders, TextStreamResponse } from './stubs';
4+
import { Document } from '@xmldom/xmldom';
45

56
export class IntellijHttpResponse implements HttpResponse {
6-
body: string | TextStreamResponse | unknown;
7+
body: string | TextStreamResponse | Document | unknown;
78
status: number;
89
contentType: ContentType;
910
headers: ResponseHeaders;

src/plugins/intellij/api/stubs/http-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface HttpResponse {
6363
/**
6464
* Response content, it is a string or JSON object if response content-type is json.
6565
*/
66-
body: string | TextStreamResponse | Document | object;
66+
body: string | TextStreamResponse | Document | unknown;
6767

6868
/**
6969
* Response headers storage.

0 commit comments

Comments
 (0)