UNPKG

1.19 kBTypeScriptView Raw
1import { Application, Constructor, LifeCycleObserver } from '@loopback/core';
2import { ArtifactOptions } from '../types';
3import { BaseArtifactBooter } from './base-artifact.booter';
4type LifeCycleObserverClass = Constructor<LifeCycleObserver>;
5/**
6 * A class that extends BaseArtifactBooter to boot the 'LifeCycleObserver' artifact type.
7 *
8 * Supported phases: configure, discover, load
9 *
10 * @param app - Application instance
11 * @param projectRoot - Root of User Project relative to which all paths are resolved
12 * @param bootConfig - LifeCycleObserver Artifact Options Object
13 */
14export 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 */
28export declare const LifeCycleObserverDefaults: ArtifactOptions;
29export {};