Problem
There's a type inconsistency in the Mail class regarding replyToList:
Type Definition suggests both formats are valid:
|
replyToList?: EmailJSON | EmailJSON[], |
But, Runtime Validation enforces array-only:
|
setReplyToList(replyToList: EmailJSON[]): void; |
|
if (this._doArrayCheck('replyToList', replyToList) && replyToList.length) { |
Impact
This inconsistency causes runtime errors
Error: Array expected for replyToList