diff --git a/types/promise-ftp/index.d.ts b/types/promise-ftp/index.d.ts index 20d1f247c1..6f7a21d59f 100644 --- a/types/promise-ftp/index.d.ts +++ b/types/promise-ftp/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for promise-ftp 1.3 // Project: https://github.com/realtymaps/promise-ftp // Definitions by: coolreader18 +// Rolands Jegorovs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.2 @@ -88,8 +89,8 @@ declare class PromiseFtp { * @param useCompression - defaults to false. * @returns the contents of the specified directory */ - list(path?: string, useCompression?: boolean): Promise; - list(useCompression: boolean): Promise; + list(path?: string, useCompression?: boolean): Promise>; + list(useCompression: boolean): Promise>; /** * Optional "standard" commands (RFC 959) @@ -106,8 +107,8 @@ declare class PromiseFtp { listSafe( path?: string, useCompression?: boolean - ): FtpClient.ListingElement[]; - listSafe(useCompression: boolean): Promise; + ): Promise>; + listSafe(useCompression: boolean): Promise>; /** * Retrieve a file at path from the server.