mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[ssh2-sftp-client] add the second param for list method (#40609)
This commit is contained in:
3
types/ssh2-sftp-client/index.d.ts
vendored
3
types/ssh2-sftp-client/index.d.ts
vendored
@@ -7,6 +7,7 @@
|
||||
// Orblazer <https://github.com/orblazer>
|
||||
// Taylor Herron <https://github.com/gbhmt>
|
||||
// Lane Goldberg <https://github.com/builtbylane>
|
||||
// Lorenzo Adinolfi <https://github.com/loru88>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as ssh2 from 'ssh2';
|
||||
@@ -17,7 +18,7 @@ export = sftp;
|
||||
declare class sftp {
|
||||
connect(options: ssh2.ConnectConfig): Promise<ssh2.SFTPWrapper>;
|
||||
|
||||
list(remoteFilePath: string): Promise<sftp.FileInfo[]>;
|
||||
list(remoteFilePath: string, pattern?: string|RegExp): Promise<sftp.FileInfo[]>;
|
||||
|
||||
exists(remotePath: string): Promise<false | "d" | "-" | "l">;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user