mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add definitions for promise-ftp, promise-ftp-common, and promise-sftp * Fix linting errors * Realign some stuff in tsconfig.json * Add strictFunctionTypes to tsconfig.json * Use import = in tests
26 lines
836 B
TypeScript
26 lines
836 B
TypeScript
// Type definitions for promise-ftp-common 1.1
|
|
// Project: https://github.com/realtymaps/promise-ftp-common
|
|
// Definitions by: coolreader18 <https://github.com/coolreader18>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.4
|
|
|
|
export enum STATUSES {
|
|
NOT_YET_CONNECTED = "not yet connected",
|
|
CONNECTING = "connecting",
|
|
CONNECTED = "connected",
|
|
LOGGING_OUT = "logging out",
|
|
DISCONNECTING = "disconnecting",
|
|
DISCONNECTED = "disconnected",
|
|
RECONNECTING = "reconnecting"
|
|
}
|
|
export class FtpConnectionError extends Error {}
|
|
export class FtpReconnectError extends Error {
|
|
constructor(
|
|
disconnectError?: string | Error,
|
|
connectError?: string | Error,
|
|
onCwd?: boolean
|
|
);
|
|
connectError: string | Error;
|
|
disconnectError: string | Error;
|
|
}
|