mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
21 lines
415 B
TypeScript
21 lines
415 B
TypeScript
import * as Mailgen from "mailgen";
|
|
|
|
const generator: Mailgen = new Mailgen({
|
|
theme: "default",
|
|
product: {
|
|
name: "test",
|
|
link: "http://localhost",
|
|
}
|
|
});
|
|
|
|
const content: Mailgen.Content = {
|
|
body: {
|
|
name: "Hi",
|
|
intro: "test",
|
|
outro: "test",
|
|
},
|
|
};
|
|
|
|
let html = generator.generate(content);
|
|
html = generator.generatePlaintext(content);
|