mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
add server to monorepo.
This commit is contained in:
16
packages/server/src/interfaces/Mailable.ts
Normal file
16
packages/server/src/interfaces/Mailable.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
export interface IMailable {
|
||||
constructor(
|
||||
view: string,
|
||||
data?: { [key: string]: string | number },
|
||||
);
|
||||
send(): Promise<any>;
|
||||
build(): void;
|
||||
setData(data: { [key: string]: string | number }): IMailable;
|
||||
setTo(to: string): IMailable;
|
||||
setFrom(from: string): IMailable;
|
||||
setSubject(subject: string): IMailable;
|
||||
setView(view: string): IMailable;
|
||||
render(data?: { [key: string]: string | number }): string;
|
||||
getViewContent(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user