From 4cfda1e42d32f8684db14d672d84081fec5bd080 Mon Sep 17 00:00:00 2001 From: Akinmade Bond Date: Mon, 20 Mar 2017 17:44:28 +0100 Subject: [PATCH] update recipientLists get return type Should already return ResultsPromise, must've slipped through the cracks. --- sparkpost/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparkpost/index.d.ts b/sparkpost/index.d.ts index a12d9dbfa4..edef477f3d 100644 --- a/sparkpost/index.d.ts +++ b/sparkpost/index.d.ts @@ -116,7 +116,7 @@ declare class SparkPost { * @param {{ show_recipients?: boolean }} [options] specifies whether to retrieve the recipients. Defaults to false * @returns {Promise} */ - get(id: string, options?: { show_recipients?: boolean }): Promise; + get(id: string, options?: { show_recipients?: boolean }): SparkPost.ResultsPromise; /** * Create a recipient list by providing a recipient list object as the POST request body. * At a minimum, the “recipients” array is required, which must contain a valid “address”.