``` external interface AttachmentOptions: { val ...
# javascript
f
Copy code
external interface AttachmentOptions: {
  val data: File,
  val filename: String
}

@JsModule("mailgun-js")
external object mailgun {
  class Attachment(options: AttachmentOptions)
}

mailgun.Attachment(object: AttachmentOptions {
  override val data = file
  override val filename = filename
})
k
@Filipp Riabchun what about
Copy code
@file:JsModule("mailgun-js")

external class Attachment(options: AttachmentOptions)
👍🏽 1
f
Yes, that's a valid option of course