@foal/storage
Version:
Storage components for FoalTS
19 lines (18 loc) • 471 B
TypeScript
import { HookDecorator } from '@foal/core';
export interface FilesSchema {
[key: string]: {
required: boolean;
multiple?: boolean;
saveTo?: string;
};
}
export interface FieldsSchema {
type: 'object';
properties: {
[key: string]: any;
};
[key: string]: any;
}
export declare function ParseAndValidateFiles(filesSchema: FilesSchema, fieldsSchema?: FieldsSchema, options?: {
openapi?: boolean;
}): HookDecorator;