mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
update index.d.ts: fix sft.get options param (#40305)
options should be `ssh2Stream.TransferOptions` not a boolean
This commit is contained in:
committed by
Pranav Senthilnathan
parent
5f258aaed0
commit
63d72fb1fa
3
types/ssh2-sftp-client/index.d.ts
vendored
3
types/ssh2-sftp-client/index.d.ts
vendored
@@ -6,6 +6,7 @@
|
||||
// Michael Pertl <https://github.com/viamuli>
|
||||
// Orblazer <https://github.com/orblazer>
|
||||
// Taylor Herron <https://github.com/gbhmt>
|
||||
// Lane Goldberg <https://github.com/builtbylane>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as ssh2 from 'ssh2';
|
||||
@@ -24,7 +25,7 @@ declare class sftp {
|
||||
|
||||
realPath(remotePath: string): Promise<string>;
|
||||
|
||||
get(path: string, dst?: string | NodeJS.ReadableStream, options?: boolean): Promise<string | NodeJS.ReadableStream | Buffer>;
|
||||
get(path: string, dst?: string | NodeJS.ReadableStream, options?: ssh2Stream.TransferOptions): Promise<string | NodeJS.ReadableStream | Buffer>;
|
||||
|
||||
fastGet(remoteFilePath: string, localPath: string, options?: ssh2Stream.TransferOptions): Promise<string>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user