From 63d72fb1fa187906ecd6a5309fa04c91675bb907 Mon Sep 17 00:00:00 2001 From: Lane Goldberg Date: Mon, 11 Nov 2019 14:59:17 -0500 Subject: [PATCH] update index.d.ts: fix sft.get options param (#40305) options should be `ssh2Stream.TransferOptions` not a boolean --- types/ssh2-sftp-client/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/ssh2-sftp-client/index.d.ts b/types/ssh2-sftp-client/index.d.ts index 2d8c4409e1..1a3469d71d 100644 --- a/types/ssh2-sftp-client/index.d.ts +++ b/types/ssh2-sftp-client/index.d.ts @@ -6,6 +6,7 @@ // Michael Pertl // Orblazer // Taylor Herron +// Lane Goldberg // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as ssh2 from 'ssh2'; @@ -24,7 +25,7 @@ declare class sftp { realPath(remotePath: string): Promise; - get(path: string, dst?: string | NodeJS.ReadableStream, options?: boolean): Promise; + get(path: string, dst?: string | NodeJS.ReadableStream, options?: ssh2Stream.TransferOptions): Promise; fastGet(remoteFilePath: string, localPath: string, options?: ssh2Stream.TransferOptions): Promise;