From fc504cbb14b60e9194f64a02604b67697a1286a6 Mon Sep 17 00:00:00 2001 From: orblazer Date: Tue, 4 Jun 2019 23:06:27 +0200 Subject: [PATCH] Fix return promise value (#35792) --- types/ssh2-sftp-client/index.d.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/types/ssh2-sftp-client/index.d.ts b/types/ssh2-sftp-client/index.d.ts index 5e8284afbb..d36869329b 100644 --- a/types/ssh2-sftp-client/index.d.ts +++ b/types/ssh2-sftp-client/index.d.ts @@ -4,6 +4,7 @@ // Ascari Andrea // Kartik Malik // Michael Pertl +// Orblazer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as ssh2 from 'ssh2'; @@ -12,11 +13,11 @@ import * as ssh2Stream from 'ssh2-streams'; export = sftp; declare class sftp { - connect(options: ssh2.ConnectConfig): Promise; + connect(options: ssh2.ConnectConfig): Promise; list(remoteFilePath: string): Promise; - exists(remotePath: string): Promise; + exists(remotePath: string): Promise; stat(remotePath: string): Promise; @@ -24,17 +25,17 @@ declare class sftp { fastGet(remoteFilePath: string, localPath: string, options?: ssh2Stream.TransferOptions): Promise; - put(input: string | Buffer | NodeJS.ReadableStream, remoteFilePath: string, options?: ssh2Stream.TransferOptions): Promise; + put(input: string | Buffer | NodeJS.ReadableStream, remoteFilePath: string, options?: ssh2Stream.TransferOptions): Promise; fastPut(localPath: string, remoteFilePath: string, options?: ssh2Stream.TransferOptions): Promise; - mkdir(remoteFilePath: string, recursive?: boolean): Promise; + mkdir(remoteFilePath: string, recursive?: boolean): Promise; - rmdir(remoteFilePath: string, recursive?: boolean): Promise; + rmdir(remoteFilePath: string, recursive?: boolean): Promise; - delete(remoteFilePath: string): Promise; + delete(remoteFilePath: string): Promise; - rename(remoteSourcePath: string, remoteDestPath: string): Promise; + rename(remoteSourcePath: string, remoteDestPath: string): Promise; chmod(remotePath: string, mode: number | string): Promise;