You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation of GmailDomEmail.to() states that all parameters are optional, but the signature of the method does not reflect that
/** Get/Set who the email is showing as To Optionally receives an object containing email and/or name properties. If received updates the values in the DOM. Optionally receives an array of these objects if multiple recipients Returns an array of objects containing email & name of who is showing in the DOM as the email is to */to(to_array: GmailDomEmailEntry|GmailDomEmailEntry[]): GmailDomEmailEntry[];
When using this in a Typescript environment I cannot
...
constgmail=newGmailFactory.Gmail(jquery)asGmail;
...
gmail.observe.on('view_email',viewedEmail=>{viewedEmail.to().map( ...)// This will raise a compile exception as its missing the mandatory parameters}
If I remove the cast to Gmail on the first line, then everything works fine as the viewedEmail is not seen as a GmailDomEmail type
The text was updated successfully, but these errors were encountered:
The documentation of
GmailDomEmail.to()
states that all parameters are optional, but the signature of the method does not reflect thatWhen using this in a Typescript environment I cannot
If I remove the cast to
Gmail
on the first line, then everything works fine as the viewedEmail is not seen as a GmailDomEmail typeThe text was updated successfully, but these errors were encountered: