diff --git a/types/ssh2-sftp-client/index.d.ts b/types/ssh2-sftp-client/index.d.ts index d32365ce35..9ad1e56a7c 100644 --- a/types/ssh2-sftp-client/index.d.ts +++ b/types/ssh2-sftp-client/index.d.ts @@ -8,6 +8,7 @@ // Taylor Herron // Lane Goldberg // Lorenzo Adinolfi +// Sam Galizia // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as ssh2 from 'ssh2'; @@ -18,19 +19,27 @@ export = sftp; declare class sftp { connect(options: ssh2.ConnectConfig): Promise; - list(remoteFilePath: string, pattern?: string|RegExp): Promise; + list(remoteFilePath: string, pattern?: string | RegExp): Promise; - exists(remotePath: string): Promise; + exists(remotePath: string): Promise; stat(remotePath: string): Promise; realPath(remotePath: string): Promise; - get(path: string, dst?: string | NodeJS.ReadableStream, options?: ssh2Stream.TransferOptions): Promise; + get( + path: string, + dst?: string | NodeJS.WritableStream, + options?: ssh2Stream.TransferOptions, + ): Promise; 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; @@ -46,7 +55,11 @@ declare class sftp { chmod(remotePath: string, mode: number | string): Promise; - append(input: Buffer | NodeJS.ReadableStream, remotePath: string, options?: ssh2Stream.TransferOptions): Promise; + append( + input: Buffer | NodeJS.ReadableStream, + remotePath: string, + options?: ssh2Stream.TransferOptions, + ): Promise; end(): Promise;