Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22421125
message.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
542 B
Referenced Files
None
Subscribers
None
message.ts
View Options
import
assert
from
"assert"
;
import
type
{
App
}
from
"../app/app.js"
;
export
type
MessageData
=
{
to
:
string
;
subject
:
string
;
html
:
string
;
attachments
:
any
[];
text
:
string
;
replyTo
?:
string
;
};
export
default
class
Message
{
data
:
MessageData
;
constructor
(
data
:
MessageData
)
{
assert
(
data
.
to
);
assert
(
data
.
subject
);
assert
(
data
.
html
);
assert
(
data
.
attachments
===
undefined
||
Array
.
isArray
(
data
.
attachments
)
);
this
.
data
=
data
;
}
async
send
(
app
:
App
)
:
Promise
<
void
>
{
return
app
.
mailer
.
send
(
this
.
data
);
}
}
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, Nov 28, 03:05 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1223411
Default Alt Text
message.ts (542 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline