Filipp Riabchun
03/09/2018, 3:41 PMexternal 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
})
konsoletyper
03/10/2018, 8:19 AM@file:JsModule("mailgun-js")
external class Attachment(options: AttachmentOptions)
Filipp Riabchun
03/10/2018, 8:05 PM