@xtail/ssh
Version:
X-Tail SSH 库,包含 SSH 连接服务器的类和工具方法等
12 lines (11 loc) • 416 B
TypeScript
import { default as SSHConfig } from 'ssh2-promise/lib/sshConfig';
import { SSHResultType } from '../types';
/**
* SSH 连接服务器时的错误处理
*
* @param err 错误对象
* @param {SSHConfig} config SSH 连接服务器的配置对象
* @returns {SSHResultType}
*/
export declare const errorHandler: (err: any, config?: SSHConfig) => SSHResultType;
export type ErrorHandlerType = typeof errorHandler;