From ec7c6ded2a1cef441542073bdce44f49dc7abb06 Mon Sep 17 00:00:00 2001 From: Rolands Jegorovs Date: Thu, 29 Aug 2019 05:09:55 +0200 Subject: [PATCH] Update return types of list, listSafe to also return array of strings (#37992) --- types/promise-ftp/index.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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.