-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't access email.to.text - Property 'text' does not exist on type 'AddressObject | AddressObject[]' #320
Comments
same probleme |
The issue is that the types here for
|
Did we get any resolution on this? |
I search solution too |
Deal both cases where addressOjbect is array or string like this
|
Hi, are there any other resolution to this? I see that a PR was merged long ago which added However, I am not sure if this is actually a valid input where there are 3 "To"s, as per that example. My input has always given me a single May I check if @andris9 has any inputs on this? |
Hi, how can I get the text value of an email recipient?
I did it successfuly for a sender:
but when I try to do that for "to":
const toText = email.to?.text ?? "";
I get this error:
After displaying a whole email object (
console.log(email)
) i can see that I should be able to accessto
, just asfrom
:What might be the problem here? Am I using wrong keywords?
The text was updated successfully, but these errors were encountered: