UNPKG

@adonisjs/bodyparser

Version:

BodyParser middleware for AdonisJS http server to read and parse request body

19 lines (18 loc) 422 B
import { MultipartFile } from '../file.js'; /** * Validates the file extension */ export declare class ExtensionValidator { #private; validated: boolean; /** * Update the expected file extensions */ get extensions(): string[] | undefined; set extensions(extnames: string[] | undefined); constructor(file: MultipartFile); /** * Validate the file */ validate(): void; }