1 | import { Application, Constructor, LifeCycleObserver } from '@loopback/core';
|
2 | import { ArtifactOptions } from '../types';
|
3 | import { BaseArtifactBooter } from './base-artifact.booter';
|
4 | type LifeCycleObserverClass = Constructor<LifeCycleObserver>;
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare class LifeCycleObserverBooter extends BaseArtifactBooter {
|
15 | app: Application;
|
16 | observerConfig: ArtifactOptions;
|
17 | observers: LifeCycleObserverClass[];
|
18 | constructor(app: Application, projectRoot: string, observerConfig?: ArtifactOptions);
|
19 | /**
|
20 | * Uses super method to get a list of Artifact classes. Boot each file by
|
21 | * creating a DataSourceConstructor and binding it to the application class.
|
22 | */
|
23 | load(): Promise<void>;
|
24 | }
|
25 | /**
|
26 | * Default ArtifactOptions for DataSourceBooter.
|
27 | */
|
28 | export declare const LifeCycleObserverDefaults: ArtifactOptions;
|
29 | export {};
|