UNPKG

655 BTypeScriptView Raw
1import { Provider } from '@loopback/core';
2import { Middleware } from '@loopback/express';
3import { RequestBodyParser } from '../body-parsers';
4import { AjvFactory, ParseParams, ValidationOptions } from '../types';
5/**
6 * Provides the function for parsing args in requests at runtime.
7 *
8 * @returns The handler function that will parse request args.
9 */
10export declare class ParseParamsProvider {
11 static value(requestBodyParser: RequestBodyParser, validationOptions: ValidationOptions | undefined, ajvFactory: AjvFactory): ParseParams;
12}
13export declare class ParseParamsMiddlewareProvider implements Provider<Middleware> {
14 value(): Middleware;
15}