mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
mailgen: Add missing members to ContentBody and Product, fix type of several existing members (#16000)
This commit is contained in:
parent
10a204d02d
commit
141f50ad45
33
types/mailgen/index.d.ts
vendored
33
types/mailgen/index.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
// Type definitions for mailgen 2.0
|
||||
// Project: https://github.com/eladnava/mailgen#readme
|
||||
// Definitions by: Kiet Thanh Vo <https://github.com/vothanhkiet>
|
||||
// Definitions by: Kiet Thanh Vo <https://github.com/vothanhkiet>, Jordan Farrer <https://github.com/jordanfarrer>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
import Option = Mailgen.Option;
|
||||
import Content = Mailgen.Content;
|
||||
@ -29,6 +29,7 @@ declare namespace Mailgen {
|
||||
name: string;
|
||||
link: string;
|
||||
logo?: string;
|
||||
copyright?: string;
|
||||
}
|
||||
|
||||
interface Content {
|
||||
@ -36,10 +37,32 @@ declare namespace Mailgen {
|
||||
}
|
||||
|
||||
interface ContentBody {
|
||||
name: string;
|
||||
intro: string;
|
||||
action?: Action;
|
||||
outro: string;
|
||||
name?: string;
|
||||
greeting?: string;
|
||||
signature?: string;
|
||||
title?: string;
|
||||
intro?: string | string[];
|
||||
action?: Action | Action[];
|
||||
table?: Table;
|
||||
dictionary?: any;
|
||||
goToAction?: GoToAction;
|
||||
outro?: string | string[];
|
||||
}
|
||||
|
||||
interface Table {
|
||||
data: any[];
|
||||
columns?: ColumnOptions[];
|
||||
}
|
||||
|
||||
interface ColumnOptions {
|
||||
customWidth: any;
|
||||
customAlignment: any;
|
||||
}
|
||||
|
||||
interface GoToAction {
|
||||
text: string;
|
||||
link: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
interface Action {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user