Version: 0.1.00.1.10.1.20.1.30.2.00.2.10.2.20.2.30.2.40.3.00.3.10.3.20.4.00.4.10.5.00.6.00.7.00.8.01.0.01.0.12.0.02.1.02.1.12.1.22.2.02.3.02.4.02.5.02.6.02.7.02.8.02.9.02.9.12.10.02.11.02.12.02.12.12.12.22.13.02.14.02.14.12.14.22.15.02.15.12.16.02.17.02.17.12.18.02.19.02.19.12.19.22.20.12.20.22.20.32.20.42.20.52.20.62.20.72.20.82.20.92.20.102.21.03.0.03.1.03.1.13.1.23.1.33.2.03.2.14.0.04.1.04.1.14.2.04.2.14.3.05.0.05.0.15.0.25.0.35.1.05.1.15.1.25.2.05.3.05.3.16.0.06.0.16.1.06.1.16.2.06.3.06.3.16.4.06.4.16.5.06.6.06.6.16.7.06.8.06.8.16.8.26.9.06.9.16.9.26.10.06.10.16.11.06.11.16.12.06.12.16.12.26.13.06.14.06.14.16.14.26.14.36.15.07.0.07.0.17.1.07.2.07.2.1
import { Location, Request } from './base';
export type MatchedDataOptions = {
/**
* Whether the value returned by `matchedData()` should include data deemed optional.
* @default false
*/
includeOptionals: boolean;
* An array of locations in the request to extract the data from.
locations: Location[];
* Whether the value returned by `matchedData()` should include only values that have passed
* validation.
* @default true
onlyValidData: boolean;
};
* Extracts data validated or sanitized from the request, and builds an object with them.
*
* @param req the express request object
* @param options
* @returns an object of data that's been validated or sanitized in the passed request
export declare function matchedData<T extends object = Record<string, any>>(req: Request, options?: Partial<MatchedDataOptions>): T;