@types/ssh2
Advanced tools
Comparing version 0.5.42 to 0.5.43
@@ -48,5 +48,5 @@ // Type definitions for ssh2 v0.5.x | ||
/** The channel type, usually "session". */ | ||
type?: string; | ||
type: string | undefined; | ||
/** The channel subtype, usually "exec", "shell", or undefined. */ | ||
subtype?: string; | ||
subtype: string | undefined; | ||
@@ -253,3 +253,3 @@ /** | ||
*/ | ||
exec(command: string, options: ExecOptions, callback: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
exec(command: string, options: ExecOptions, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
@@ -264,3 +264,3 @@ /** | ||
*/ | ||
exec(command: string, callback: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
exec(command: string, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
@@ -276,3 +276,3 @@ /** | ||
*/ | ||
shell(window: PseudoTtyOptions | false, options: ShellOptions, callback: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
shell(window: PseudoTtyOptions | false, options: ShellOptions, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
@@ -287,3 +287,3 @@ /** | ||
*/ | ||
shell(window: PseudoTtyOptions | false, callback: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
shell(window: PseudoTtyOptions | false, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
@@ -298,3 +298,3 @@ /** | ||
*/ | ||
shell(options: ShellOptions, callback: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
shell(options: ShellOptions, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
@@ -308,3 +308,3 @@ /** | ||
*/ | ||
shell(callback: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
shell(callback: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
@@ -330,3 +330,3 @@ /** | ||
*/ | ||
forwardIn(remoteAddr: string, remotePort: number, callback?: (err: Error | undefined, bindPort: number | undefined) => void): boolean; | ||
forwardIn(remoteAddr: string, remotePort: number, callback?: (err: Error | undefined, bindPort: number) => void): boolean; | ||
@@ -357,3 +357,3 @@ /** | ||
*/ | ||
forwardOut(srcIP: string, srcPort: number, dstIP: string, dstPort: number, callback: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
forwardOut(srcIP: string, srcPort: number, dstIP: string, dstPort: number, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
@@ -367,3 +367,3 @@ /** | ||
*/ | ||
sftp(callback: (err: Error | undefined, sftp: SFTPWrapper | undefined) => void): boolean; | ||
sftp(callback: (err: Error | undefined, sftp: SFTPWrapper) => void): boolean; | ||
@@ -378,3 +378,3 @@ /** | ||
*/ | ||
subsys(subsystem: string, callback: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
subsys(subsystem: string, callback: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
@@ -421,3 +421,3 @@ /** | ||
*/ | ||
openssh_forwardOutStreamLocal(socketPath: string, callback?: (err: Error | undefined, channel: ClientChannel | undefined) => void): boolean; | ||
openssh_forwardOutStreamLocal(socketPath: string, callback?: (err: Error | undefined, channel: ClientChannel) => void): boolean; | ||
} | ||
@@ -712,3 +712,3 @@ | ||
*/ | ||
getConnections(callback: (err: Error | null, count: number) => void): void; | ||
getConnections(callback: (err: Error | undefined, count: number) => void): void; | ||
@@ -864,3 +864,3 @@ /** | ||
*/ | ||
x11(originAddr: string, originPort: number, callback: (err: Error | undefined, channel: ServerChannel | undefined) => void): boolean; | ||
x11(originAddr: string, originPort: number, callback: (err: Error | undefined, channel: ServerChannel) => void): boolean; | ||
@@ -873,3 +873,3 @@ /** | ||
*/ | ||
forwardOut(boundAddr: string, boundPort: number, remoteAddr: string, remotePort: number, callback: (err: Error | undefined, channel: ServerChannel | undefined) => void): boolean; | ||
forwardOut(boundAddr: string, boundPort: number, remoteAddr: string, remotePort: number, callback: (err: Error | undefined, channel: ServerChannel) => void): boolean; | ||
@@ -967,3 +967,3 @@ /** | ||
/** The signature to verify, or `undefined` if the client is only checking the validity of the key. */ | ||
signature?: Buffer; | ||
signature: Buffer | undefined; | ||
/** The signature algorithm, or `undefined` if the client is only checking the validity of the key. */ | ||
@@ -988,3 +988,3 @@ sigAlgo: string; | ||
/** The signature to verify, or `undefined` if the client is only checking the validity of the key. */ | ||
signature?: Buffer; | ||
signature: Buffer | undefined; | ||
/** The signature algorithm, or `undefined` if the client is only checking the validity of the key. */ | ||
@@ -1281,3 +1281,3 @@ sigAlgo: string; | ||
*/ | ||
fastGet(remotePath: string, localPath: string, options: TransferOptions, callback: (err: Error | undefined) => void): void; | ||
fastGet(remotePath: string, localPath: string, options: TransferOptions, callback: (err: any) => void): void; | ||
@@ -1288,3 +1288,3 @@ /** | ||
*/ | ||
fastGet(remotePath: string, localPath: string, callback: (err: Error | undefined) => void): void; | ||
fastGet(remotePath: string, localPath: string, callback: (err: any) => void): void; | ||
@@ -1295,3 +1295,3 @@ /** | ||
*/ | ||
fastPut(localPath: string, remotePath: string, options: TransferOptions, callback: (err: Error | undefined) => void): void; | ||
fastPut(localPath: string, remotePath: string, options: TransferOptions, callback: (err: any) => void): void; | ||
@@ -1302,3 +1302,3 @@ /** | ||
*/ | ||
fastPut(localPath: string, remotePath: string, callback: (err: Error | undefined) => void): void; | ||
fastPut(localPath: string, remotePath: string, callback: (err: any) => void): void; | ||
@@ -1309,3 +1309,3 @@ /** | ||
*/ | ||
readFile(remotePath: string, options: ReadFileOptions, callback: (err: Error | undefined, handle: Buffer | undefined) => void): void; | ||
readFile(remotePath: string, options: ReadFileOptions, callback: (err: any, handle: Buffer) => void): void; | ||
@@ -1316,3 +1316,3 @@ /** | ||
*/ | ||
readFile(remotePath: string, encoding: string, callback: (err: Error | undefined, handle: Buffer | undefined) => void): void; | ||
readFile(remotePath: string, encoding: string, callback: (err: any, handle: Buffer) => void): void; | ||
@@ -1323,3 +1323,3 @@ /** | ||
*/ | ||
readFile(remotePath: string, callback: (err: Error | undefined, handle: Buffer | undefined) => void): void; | ||
readFile(remotePath: string, callback: (err: any, handle: Buffer) => void): void; | ||
@@ -1344,3 +1344,3 @@ /** | ||
*/ | ||
open(filename: string, mode: string, attributes: InputAttributes, callback: (err: Error | undefined, handle: Buffer | undefined) => void): boolean; | ||
open(filename: string, mode: string, attributes: InputAttributes, callback: (err: any, handle: Buffer) => void): boolean; | ||
@@ -1353,3 +1353,3 @@ /** | ||
*/ | ||
open(filename: string, mode: string, callback: (err: Error | undefined, handle: Buffer | undefined) => void): boolean; | ||
open(filename: string, mode: string, callback: (err: any, handle: Buffer) => void): boolean; | ||
@@ -1362,3 +1362,3 @@ /** | ||
*/ | ||
close(handle: Buffer, callback: (err: Error | undefined) => void): boolean; | ||
close(handle: Buffer, callback: (err: any) => void): boolean; | ||
@@ -1372,3 +1372,3 @@ /** | ||
*/ | ||
read(handle: Buffer, buffer: Buffer, offset: number, length: number, position: number, callback: (err: Error | undefined, bytesRead: number, buffer: Buffer, position: number) => void): boolean; | ||
read(handle: Buffer, buffer: Buffer, offset: number, length: number, position: number, callback: (err: any, bytesRead: number, buffer: Buffer, position: number) => void): boolean; | ||
@@ -1379,3 +1379,3 @@ /** | ||
*/ | ||
write(handle: Buffer, buffer: Buffer, offset: number, length: number, position: number, callback: (err: Error | undefined) => void): boolean; | ||
write(handle: Buffer, buffer: Buffer, offset: number, length: number, position: number, callback: (err: any) => void): boolean; | ||
@@ -1388,3 +1388,3 @@ /** | ||
*/ | ||
fstat(handle: Buffer, callback: (err: Error | undefined, stats: Stats | undefined) => void): boolean; | ||
fstat(handle: Buffer, callback: (err: any, stats: Stats) => void): boolean; | ||
@@ -1397,3 +1397,3 @@ /** | ||
*/ | ||
fsetstat(handle: Buffer, attributes: InputAttributes, callback: (err: Error | undefined) => void): boolean; | ||
fsetstat(handle: Buffer, attributes: InputAttributes, callback: (err: any) => void): boolean; | ||
@@ -1406,3 +1406,3 @@ /** | ||
*/ | ||
futimes(handle: Buffer, atime: number | Date, mtime: number | Date, callback: (err: Error | undefined) => void): boolean; | ||
futimes(handle: Buffer, atime: number | Date, mtime: number | Date, callback: (err: any) => void): boolean; | ||
@@ -1415,3 +1415,3 @@ /** | ||
*/ | ||
fchown(handle: Buffer, uid: number, gid: number, callback: (err: Error | undefined) => void): boolean; | ||
fchown(handle: Buffer, uid: number, gid: number, callback: (err: any) => void): boolean; | ||
@@ -1424,3 +1424,3 @@ /** | ||
*/ | ||
fchmod(handle: Buffer, mode: number | string, callback: (err: Error | undefined) => void): boolean; | ||
fchmod(handle: Buffer, mode: number | string, callback: (err: any) => void): boolean; | ||
@@ -1433,3 +1433,3 @@ /** | ||
*/ | ||
opendir(path: string, callback: (err: Error | undefined, handle: Buffer | undefined) => void): boolean; | ||
opendir(path: string, callback: (err: any, handle: Buffer) => void): boolean; | ||
@@ -1442,3 +1442,3 @@ /** | ||
*/ | ||
readdir(location: string | Buffer, callback: (err: Error | undefined, list: FileEntry[] | undefined) => void): boolean; | ||
readdir(location: string | Buffer, callback: (err: any, list: FileEntry[]) => void): boolean; | ||
@@ -1451,3 +1451,3 @@ /** | ||
*/ | ||
unlink(path: string, callback: (err: Error | undefined) => void): boolean; | ||
unlink(path: string, callback: (err: any) => void): boolean; | ||
@@ -1460,3 +1460,3 @@ /** | ||
*/ | ||
rename(srcPath: string, destPath: string, callback: (err: Error | undefined) => void): boolean; | ||
rename(srcPath: string, destPath: string, callback: (err: any) => void): boolean; | ||
@@ -1469,3 +1469,3 @@ /** | ||
*/ | ||
mkdir(path: string, attributes: InputAttributes, callback: (err: Error | undefined) => void): boolean; | ||
mkdir(path: string, attributes: InputAttributes, callback: (err: any) => void): boolean; | ||
@@ -1478,3 +1478,3 @@ /** | ||
*/ | ||
mkdir(path: string, callback: (err: Error | undefined) => void): boolean; | ||
mkdir(path: string, callback: (err: any) => void): boolean; | ||
@@ -1487,3 +1487,3 @@ /** | ||
*/ | ||
rmdir(path: string, callback: (err: Error | undefined) => void): boolean; | ||
rmdir(path: string, callback: (err: any) => void): boolean; | ||
@@ -1496,3 +1496,3 @@ /** | ||
*/ | ||
stat(path: string, callback: (err: Error | undefined, stats: Stats | undefined) => void): boolean; | ||
stat(path: string, callback: (err: any, stats: Stats) => void): boolean; | ||
@@ -1506,3 +1506,3 @@ /** | ||
*/ | ||
lstat(path: string, callback: (err: Error | undefined, stats: Stats | undefined) => void): boolean; | ||
lstat(path: string, callback: (err: any, stats: Stats) => void): boolean; | ||
@@ -1515,3 +1515,3 @@ /** | ||
*/ | ||
setstat(path: string, attributes: InputAttributes, callback: (err: Error | undefined) => void): boolean; | ||
setstat(path: string, attributes: InputAttributes, callback: (err: any) => void): boolean; | ||
@@ -1524,3 +1524,3 @@ /** | ||
*/ | ||
utimes(path: string, atime: number | Date, mtime: number | Date, callback: (err: Error | undefined) => void): boolean; | ||
utimes(path: string, atime: number | Date, mtime: number | Date, callback: (err: any) => void): boolean; | ||
@@ -1533,3 +1533,3 @@ /** | ||
*/ | ||
chown(path: string, uid: number, gid: number, callback: (err: Error | undefined) => void): boolean; | ||
chown(path: string, uid: number, gid: number, callback: (err: any) => void): boolean; | ||
@@ -1542,3 +1542,3 @@ /** | ||
*/ | ||
chmod(path: string, mode: number | string, callback: (err: Error | undefined) => void): boolean; | ||
chmod(path: string, mode: number | string, callback: (err: any) => void): boolean; | ||
@@ -1551,3 +1551,3 @@ /** | ||
*/ | ||
readlink(path: string, callback: (err: Error | undefined, target: string | undefined) => void): boolean; | ||
readlink(path: string, callback: (err: any, target: string) => void): boolean; | ||
@@ -1560,3 +1560,3 @@ /** | ||
*/ | ||
symlink(targetPath: string, linkPath: string, callback: (err: Error | undefined) => void): boolean; | ||
symlink(targetPath: string, linkPath: string, callback: (err: any) => void): boolean; | ||
@@ -1569,3 +1569,3 @@ /** | ||
*/ | ||
realpath(path: string, callback: (err: Error | undefined, absPath: string | undefined) => void): boolean; | ||
realpath(path: string, callback: (err: any, absPath: string) => void): boolean; | ||
@@ -1578,3 +1578,3 @@ /** | ||
*/ | ||
ext_openssh_rename(srcPath: string, destPath: string, callback: (err: Error | undefined) => void): boolean; | ||
ext_openssh_rename(srcPath: string, destPath: string, callback: (err: any) => void): boolean; | ||
@@ -1587,3 +1587,3 @@ /** | ||
*/ | ||
ext_openssh_statvfs(path: string, callback: (err: Error | undefined, fsInfo: any) => void): boolean; | ||
ext_openssh_statvfs(path: string, callback: (err: any, fsInfo: any) => void): boolean; | ||
@@ -1596,3 +1596,3 @@ /** | ||
*/ | ||
ext_openssh_fstatvfs(handle: Buffer, callback: (err: Error | undefined, fsInfo: any) => void): boolean; | ||
ext_openssh_fstatvfs(handle: Buffer, callback: (err: any, fsInfo: any) => void): boolean; | ||
@@ -1605,3 +1605,3 @@ /** | ||
*/ | ||
ext_openssh_hardlink(targetPath: string, linkPath: string, callback: (err: Error | undefined) => void): boolean; | ||
ext_openssh_hardlink(targetPath: string, linkPath: string, callback: (err: any) => void): boolean; | ||
@@ -1614,3 +1614,3 @@ /** | ||
*/ | ||
ext_openssh_fsync(handle: Buffer, callback: (err: Error | undefined, fsInfo: any) => void): boolean; | ||
ext_openssh_fsync(handle: Buffer, callback: (err: any, fsInfo: any) => void): boolean; | ||
@@ -1625,3 +1625,3 @@ /** | ||
*/ | ||
on(event: "error", listener: (err: Error | undefined) => void): this; | ||
on(event: "error", listener: (err: any) => void): this; | ||
@@ -1628,0 +1628,0 @@ /** |
{ | ||
"name": "@types/ssh2", | ||
"version": "0.5.42", | ||
"version": "0.5.43", | ||
"description": "TypeScript definitions for ssh2", | ||
@@ -40,4 +40,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "567092c6bd49083353faf8c65cea646b3852df3d514ae07f6549c32131ae72b7", | ||
"typesPublisherContentHash": "5c9d7dea57b879665ec7a77d3101ecb0e5b2d2d0ae45e992bba58215787ffc66", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 31 Mar 2020 21:43:52 GMT | ||
* Last updated: Fri, 10 Apr 2020 23:47:05 GMT | ||
* Dependencies: [@types/ssh2-streams](https://npmjs.com/package/@types/ssh2-streams), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
63313