Skip to content

Commit 119c515

Browse files
chore(internal): avoid type checking errors with ts-reset
1 parent d7f93ff commit 119c515

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ export class Gitpod {
803803
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
804804

805805
const errText = await response.text().catch((err: any) => castToError(err).message);
806-
const errJSON = safeJSON(errText);
806+
const errJSON = safeJSON(errText) as any;
807807
const errMessage = errJSON ? undefined : errText;
808808

809809
loggerFor(this).debug(

src/internal/decoders/jsonl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export class JSONLDecoder<T> {
1616
const lineDecoder = new LineDecoder();
1717
for await (const chunk of this.iterator) {
1818
for (const line of lineDecoder.decode(chunk)) {
19-
yield JSON.parse(line);
19+
yield JSON.parse(line) as T;
2020
}
2121
}
2222

2323
for (const line of lineDecoder.flush()) {
24-
yield JSON.parse(line);
24+
yield JSON.parse(line) as T;
2525
}
2626
}
2727

0 commit comments

Comments
 (0)