UNPKG

496 BTypeScriptView Raw
1import { Application, Binding, Component, Constructor, ProviderMap, Server } from '@loopback/core';
2import { RestServerConfig } from './rest.server';
3export declare class RestComponent implements Component {
4 providers: ProviderMap;
5 /**
6 * Add built-in body parsers
7 */
8 bindings: Binding[];
9 servers: {
10 [name: string]: Constructor<Server>;
11 };
12 constructor(app: Application, config?: RestComponentConfig);
13}
14export type RestComponentConfig = RestServerConfig;