From abbd32a4e795aa6cadb21de0d0776d4e4fe573f9 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Tue, 14 Mar 2017 13:30:47 -0600 Subject: [PATCH] The getSubstutions() method returns an object with string key/value pairs, not an array of objects. Refer to this.addSubstitutions() and this.getSubstitutions() methods in the mail.js helper source code at: https://github.com/sendgrid/sendgrid-nodejs/blob/master/lib/helpers/mail /mail.js --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 716dae0c4..37fec0f69 100644 --- a/index.d.ts +++ b/index.d.ts @@ -406,7 +406,7 @@ declare namespace SendGrid.Helpers.Mail { getHeaders(): Header[]; addSubstitution(substitution: Substitution): void; - getSubstitutions(): Substitution[]; + getSubstitutions(): {[key: string]: string}; addCustomArg(substitution: CustomArgs): void; getCustomArgs(): CustomArgs[];