refactor: upgrade project to Typescript 5.9

This commit is contained in:
Rainer Killinger
2026-10-01 10:53:00 +02:00
parent 982c0cc57c
commit 444557b725
22 changed files with 158 additions and 256 deletions
+3 -3
View File
@@ -28,10 +28,10 @@
"test": "c8 mocha"
},
"dependencies": {
"@types/nodemailer": "6.4.7",
"@types/nodemailer": "8.0.2",
"chalk": "5.2.0",
"flatted": "3.2.7",
"nodemailer": "6.9.9"
"nodemailer": "8.0.11"
},
"devDependencies": {
"@openstapps/eslint-config": "workspace:*",
@@ -51,7 +51,7 @@
"ts-node": "10.9.2",
"tsup": "8.5.0",
"typedoc": "0.25.12",
"typescript": "5.5.4"
"typescript": "5.9.3"
},
"tsup": {
"entry": [
+2 -2
View File
@@ -13,7 +13,7 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import * as nodemailer from 'nodemailer';
import {MailOptions} from 'nodemailer/lib/sendmail-transport';
import {SendMailOptions} from 'nodemailer';
import {deleteUndefinedProperties, isProductiveEnvironment, RecursivePartial} from './common.js';
import {VerifiableTransport} from './transport.js';
@@ -310,7 +310,7 @@ export class SMTP extends VerifiableTransport {
* Sends a mail object
* @param mail Mail to send
*/
public async sendMail(mail: MailOptions): Promise<string> {
public async sendMail(mail: SendMailOptions): Promise<string> {
// info is the response of the smtp server
let info = await this.transportAgent.sendMail(mail);