$ 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'.