forked from aheckmann/node-ses
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-ses.d.ts
More file actions
39 lines (39 loc) · 860 Bytes
/
node-ses.d.ts
File metadata and controls
39 lines (39 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
declare module "node-ses" {
export type Emails = string | string[];
export interface MessageTag {
name: string;
value: any;
}
export interface sendEmailOptions {
from: string;
subject: string;
message: string;
altText?: string;
to?: Emails;
cc?: Emails;
bcc?: Emails;
replyTo?: string;
configurationSet?: string;
messageTags?: MessageTag[];
key?: string;
secret?: string;
amazon?: string;
}
export interface sendRawEmailOptions {
from: string;
rawMessage: string;
}
export interface Client {
asyncSendEmail(options: sendEmailOptions): Promise<string>;
asyncSendRawEmail(options: sendRawEmailOptions): Promise<string>;
}
export function createClient({
key,
secret,
amazon
}: {
key: string;
secret: string;
amazon?: string;
}): Client;
}