Merge from vscode 011858832762aaff245b2336fb1c38166e7a10fb (#4663)

This commit is contained in:
Anthony Dresser
2019-03-22 13:07:54 -07:00
committed by GitHub
parent f5c9174c2f
commit 4a87a24235
296 changed files with 2531 additions and 2472 deletions

View File

@@ -1,6 +1,6 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// Defined a subset of ES6 built ins that run in IE11

View File

@@ -6,7 +6,7 @@
declare module 'spdlog' {
export const version: string;
export function setAsyncMode(bufferSize: number, flushInterval: number);
export function setAsyncMode(bufferSize: number, flushInterval: number): void;
export enum LogLevel {
CRITICAL,
@@ -21,14 +21,14 @@ declare module 'spdlog' {
export class RotatingLogger {
constructor(name: string, filename: string, filesize: number, filecount: number);
trace(message: string);
debug(message: string);
info(message: string);
warn(message: string);
error(message: string);
critical(message: string);
setLevel(level: number);
clearFormatters();
trace(message: string): void;
debug(message: string): void;
info(message: string): void;
warn(message: string): void;
error(message: string): void;
critical(message: string): void;
setLevel(level: number): void;
clearFormatters(): void;
/**
* A synchronous operation to flush the contents into file
*/

View File

@@ -5,5 +5,5 @@
declare module 'sudo-prompt' {
export function exec(cmd: string, options: { name?: string, icns?: string }, callback: (error: string, stdout: string, stderr: string) => void);
export function exec(cmd: string, options: { name?: string, icns?: string }, callback: (error: string, stdout: string, stderr: string) => void): void;
}

View File

@@ -31,9 +31,9 @@ declare module 'yauzl' {
}
export class ZipFile extends EventEmitter {
readEntry();
openReadStream(entry: Entry, callback: (err?: Error, stream?: Readable) => void);
close();
readEntry(): void;
openReadStream(entry: Entry, callback: (err?: Error, stream?: Readable) => void): void;
close(): void;
isOpen: boolean;
entryCount: number;
comment: string;

View File

@@ -8,8 +8,8 @@ declare module 'yazl' {
class ZipFile {
outputStream: stream.Stream;
addBuffer(buffer: Buffer, path: string);
addFile(localPath: string, path: string);
end();
addBuffer(buffer: Buffer, path: string): void;
addFile(localPath: string, path: string): void;
end(): void;
}
}