hook packages

This commit is contained in:
Sebastian Frank 2021-08-19 16:00:35 +02:00
parent 13fa91f126
commit 29a722b1fc
Signed by: apairon
GPG Key ID: A0E05A8199CE3F57

10
index.d.ts vendored
View File

@ -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