1 |
|
2 |
|
3 |
|
4 | import { HookContext, HookContextInit } from './HookContext';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export type AppStartHandler = (context: AppStartContext) => void | Promise<void>;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare class AppStartContext extends HookContext {
|
15 | |
16 |
|
17 |
|
18 | constructor(init?: AppStartContextInit);
|
19 | }
|
20 |
|
21 | /**
|
22 | * Handler for app terminate hooks
|
23 | */
|
24 | export type AppTerminateHandler = (context: AppTerminateContext) => void | Promise<void>;
|
25 |
|
26 | /**
|
27 | * Context on a function app during app termination.
|
28 | */
|
29 | export declare class AppTerminateContext extends HookContext {
|
30 | |
31 |
|
32 |
|
33 | constructor(init?: AppTerminateContextInit);
|
34 | }
|
35 |
|
36 | /**
|
37 | * Object passed to AppStartContext constructors.
|
38 | * For testing purposes only
|
39 | */
|
40 | export interface AppStartContextInit extends HookContextInit {}
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export interface AppTerminateContextInit extends HookContextInit {}
|