UNPKG

1.22 kBTypeScriptView Raw
1import { Application, Constructor, Interceptor, Provider } from '@loopback/core';
2import { ArtifactOptions } from '../types';
3import { BaseArtifactBooter } from './base-artifact.booter';
4type InterceptorProviderClass = Constructor<Provider<Interceptor>>;
5/**
6 * A class that extends BaseArtifactBooter to boot the 'InterceptorProvider' 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 - InterceptorProvider Artifact Options Object
13 */
14export declare class InterceptorProviderBooter extends BaseArtifactBooter {
15 app: Application;
16 interceptorConfig: ArtifactOptions;
17 interceptors: InterceptorProviderClass[];
18 constructor(app: Application, projectRoot: string, interceptorConfig?: 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 InterceptorProviderBooter.
27 */
28export declare const InterceptorProviderDefaults: ArtifactOptions;
29export {};