update recipientLists get return type

Should already return ResultsPromise, must've slipped through the cracks.
This commit is contained in:
Akinmade Bond
2017-03-20 17:44:28 +01:00
parent 12b979da39
commit 4cfda1e42d
+1 -1
View File
@@ -116,7 +116,7 @@ declare class SparkPost {
* @param {{ show_recipients?: boolean }} [options] specifies whether to retrieve the recipients. Defaults to false
* @returns {Promise<SparkPost.RecipientListWithRecipients>}
*/
get(id: string, options?: { show_recipients?: boolean }): Promise<SparkPost.RecipientListWithRecipients>;
get(id: string, options?: { show_recipients?: boolean }): SparkPost.ResultsPromise<SparkPost.RecipientListWithRecipients>;
/**
* 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”.