Closed dylan-hart closed 3 years ago
I'm using smtp-server along with its type definitions @types/smtp-server. The SMTPServerAddress type appears to declare its args property as type object:
smtp-server
@types/smtp-server
SMTPServerAddress
args
object
(taken from https://nodemailer.com/extras/smtp-server/#using-size-extension)
// Linter problem: Property 'SIZE' does not exist on type 'object'. let expectedSize = Number(session.envelope.mailFrom.args.SIZE) || 0;
Declaring SMTPServerAddress.args as type any or { [key: string]: string } would fix the issue for me.
any
{ [key: string]: string }
For now, I'm working around the linter:
let expectedSize = Number(session.envelope.mailFrom.args["SIZE"]) || 0;
Types are managed by 3rd party, you need to contact the maintainer directly
I'm using
smtp-server
along with its type definitions@types/smtp-server
. TheSMTPServerAddress
type appears to declare itsargs
property as typeobject
:(taken from https://nodemailer.com/extras/smtp-server/#using-size-extension)
Declaring SMTPServerAddress.args as type
any
or{ [key: string]: string }
would fix the issue for me.For now, I'm working around the linter: