fix: 修复配额说明重复和undefined问题
- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
26
backend/node_modules/express-validator/lib/matched-data.d.ts
generated
vendored
Normal file
26
backend/node_modules/express-validator/lib/matched-data.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user