@morojs/moro / MiddlewareInterface
Interface: MiddlewareInterface
Defined in: src/types/hooks.ts:37
Extends
Properties
afterInstall()?
optional
afterInstall: (context
) =>void
|Promise
<void
>
Defined in: src/types/hooks.ts:42
Parameters
context
Returns
void
| Promise
<void
>
afterUninstall()?
optional
afterUninstall: (context
) =>void
|Promise
<void
>
Defined in: src/types/hooks.ts:44
Parameters
context
Returns
void
| Promise
<void
>
beforeInstall()?
optional
beforeInstall: (context
) =>void
|Promise
<void
>
Defined in: src/types/hooks.ts:41
Parameters
context
Returns
void
| Promise
<void
>
beforeUninstall()?
optional
beforeUninstall: (context
) =>void
|Promise
<void
>
Defined in: src/types/hooks.ts:43
Parameters
context
Returns
void
| Promise
<void
>
configure()?
optional
configure: (config
) =>void
Defined in: src/types/hooks.ts:40
Parameters
config
any
Returns
void
dependencies?
optional
dependencies:string
[]
Defined in: src/types/hooks.ts:39
install()
install: (
hooks
,options?
) =>void
|Promise
<void
>
Defined in: src/types/hooks.ts:16
Parameters
hooks
any
options?
any
Returns
void
| Promise
<void
>
Inherited from
metadata?
optional
metadata:MiddlewareMetadata
Defined in: src/types/hooks.ts:38
name
name:
string
Defined in: src/types/hooks.ts:14
Inherited from
uninstall()?
optional
uninstall: (hooks
) =>void
|Promise
<void
>
Defined in: src/types/hooks.ts:17
Parameters
hooks
any
Returns
void
| Promise
<void
>
Inherited from
version?
optional
version:string
Defined in: src/types/hooks.ts:15