diff --git a/lib/interfaces/Messages.ts b/lib/interfaces/Messages.ts index 5be2bc43..791c0058 100644 --- a/lib/interfaces/Messages.ts +++ b/lib/interfaces/Messages.ts @@ -187,14 +187,12 @@ export type MailgunMessageData = MailgunMessageContent & { * to the message ('X-My-Header' in this case). * For example, `h:Reply-To` to specify Reply-To address. */ - 'h:X-My-Header'?: string; + [key: `h:${string}`]: string; /** * `v:` prefix followed by an arbitrary name allows to attach a custom JSON data to the message. See [Attaching Data to Messages](https://documentation.mailgun.com/en/latest/user_manual.html#manual-customdata) for more information. */ - 'v:my-var'?: string; - - [key: string]: any; + [key: `v:${string}`]: string; } export interface MessagesSendAPIResponse {