Files
Local Server 8bb6430a70 Website restoration: Node.js backend, restored design, GitHub sync disabled
- Replaced broken .NET backend with Node.js/Express
- Restored original website design with purple gradient hero
- Updated homepage and shop pages with Bootstrap 5 responsive design
- Disabled GitHub remote sync - all code now stored locally only
- Created backup scripts and documentation
- All changes saved on Ubuntu server at /var/www/SkyArtShop
2025-12-13 17:53:34 -06:00

27 lines
915 B
TypeScript

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;