hook packages
This commit is contained in:
parent
13fa91f126
commit
29a722b1fc
10
index.d.ts
vendored
10
index.d.ts
vendored
@ -131,13 +131,13 @@ interface DbPackage {
|
||||
|
||||
}
|
||||
|
||||
interface MailPackage {
|
||||
interface SmtpPackage {
|
||||
/**
|
||||
* send an email
|
||||
*
|
||||
* @param options email options map
|
||||
*/
|
||||
send(options: {
|
||||
sendMail(options: {
|
||||
to: string | string[]
|
||||
cc?: string | string[]
|
||||
bcc?: string | string[]
|
||||
@ -199,7 +199,7 @@ interface FsPackage {
|
||||
|
||||
}
|
||||
|
||||
interface TemplatePackage {
|
||||
interface TplPackage {
|
||||
/**
|
||||
* execute a template code and return result
|
||||
*
|
||||
@ -444,9 +444,9 @@ export interface HookContext extends GetHookData, GetHookGetOnlyData, PostHookDa
|
||||
}
|
||||
|
||||
db: DbPackage
|
||||
mail: MailPackage
|
||||
smtp: SmtpPackage
|
||||
fs: FsPackage
|
||||
template: TemplatePackage
|
||||
tpl: TplPackage
|
||||
http: HttpPackage
|
||||
debug: DebugPackage
|
||||
response: ResponsePackage
|
||||
|
Loading…
Reference in New Issue
Block a user