UNPKG

1.1 kBTypeScriptView Raw
1import { ApplicationWithServices } from '@loopback/service-proxy';
2import { ArtifactOptions } from '../types';
3import { BaseArtifactBooter } from './base-artifact.booter';
4/**
5 * A class that extends BaseArtifactBooter to boot the 'Service' artifact type.
6 * Discovered services are bound using `app.service()`.
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 - Service Artifact Options Object
13 */
14export declare class ServiceBooter extends BaseArtifactBooter {
15 app: ApplicationWithServices;
16 serviceConfig: ArtifactOptions;
17 constructor(app: ApplicationWithServices, projectRoot: string, serviceConfig?: ArtifactOptions);
18 /**
19 * Uses super method to get a list of Artifact classes. Boot each file by
20 * creating a DataSourceConstructor and binding it to the application class.
21 */
22 load(): Promise<void>;
23}
24/**
25 * Default ArtifactOptions for DataSourceBooter.
26 */
27export declare const ServiceDefaults: ArtifactOptions;