UNPKG

1.04 kBTypeScriptView Raw
1import { ApplicationWithRepositories } from '@loopback/repository';
2import { ArtifactOptions } from '../types';
3import { BaseArtifactBooter } from './base-artifact.booter';
4/**
5 * A class that extends BaseArtifactBooter to boot the 'Model' artifact type.
6 *
7 * Supported phases: configure, discover, load
8 *
9 * @param app - Application instance
10 * @param projectRoot - Root of User Project relative to which all paths are resolved
11 * @param bootConfig - Model Artifact Options Object
12 */
13export declare class ModelBooter extends BaseArtifactBooter {
14 app: ApplicationWithRepositories;
15 modelConfig: ArtifactOptions;
16 constructor(app: ApplicationWithRepositories, projectRoot: string, modelConfig?: ArtifactOptions);
17 /**
18 * Uses super method to get a list of Artifact classes. Boot each file by
19 * creating a DataSourceConstructor and binding it to the application class.
20 */
21 load(): Promise<void>;
22}
23/**
24 * Default ArtifactOptions for DataSourceBooter.
25 */
26export declare const ModelDefaults: ArtifactOptions;