question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sendMail has `any` result type

See original GitHub issue

The result of the sendMail call is currently typed as any. It’d be helpful if it was strongly typed.

  const ownerEmailResult = await sendMail({
    subject: 'Here's an email!',
    to: owner.body?.email,
    component: (
      <EventCreatedOwnerTemplate {...req.body} name={owner.body?.full_name!} />
    ),
    forceDeliver: true,
  });

  // ownerEmailResult is type <any>

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

3reactions
alexfarrillcommented, Sep 14, 2022

I think @bruceharrison1984 is saying that the return value should be typed. If I’m not mistaken, that line you reference is showing that the parameters are typed

2reactions
rashidmyacommented, Sep 3, 2022

can I be assigned this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some Useful sendmail Configurations - Linux Network ...
There are myriad possible sendmail configurations. In this space we'll illustrate just a few important types of configuration that will be useful in...
Read more >
[Chapter 36] 36.5 sendmail's exit() Status
When bouncing mail, sendmail tries to set the sender to Postmaster if no sender can be determined. Before it can use that address...
Read more >
Debugging sendmail problems
There are many tools available for debugging problems with sendmail. For the most part, standard types of configurations shouldn't provide any problems.
Read more >
php - How can I get the error message for the mail() function?
1- I installed sendmail from my package manager shell> dnf install sendmail · 2- I started it shell> service sendmail start · 3-...
Read more >
Linux sendmail command help and examples - Computer Hope
On Unix-like operating systems, sendmail is a general purpose e-mail routing facility that supports many kinds of mail-transfer and delivery ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found