mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
avoid more implicit any and some 💄
This commit is contained in:
@@ -144,7 +144,7 @@ export function asText(context: IRequestContext): TPromise<string> {
|
||||
}
|
||||
|
||||
let buffer: string[] = [];
|
||||
context.stream.on('data', d => buffer.push(d));
|
||||
context.stream.on('data', (d: string) => buffer.push(d));
|
||||
context.stream.on('end', () => c(buffer.join('')));
|
||||
context.stream.on('error', e);
|
||||
});
|
||||
@@ -165,7 +165,7 @@ export function asJson<T>(context: IRequestContext): TPromise<T> {
|
||||
}
|
||||
|
||||
const buffer: string[] = [];
|
||||
context.stream.on('data', d => buffer.push(d));
|
||||
context.stream.on('data', (d: string) => buffer.push(d));
|
||||
context.stream.on('end', () => c(JSON.parse(buffer.join(''))));
|
||||
context.stream.on('error', e);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user