ahto / augment_nodemailer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to augment interface that is a type?

$ tsc
  index.ts(21,5): error TS2345: Argument of type '{ from: string; to: string; template: string; }' is not assignable to parameter of type 'SendMailOptions'.
  Object literal may only specify known properties, and 'template' does not exist in type 'SendMailOptions'.

About


Languages

Language:TypeScript 100.0%