UNPKG

express-image-validator

Version:

Validator of various image parameters in Express.js applications

15 lines (14 loc) 449 B
import type { FieldSchema } from './options'; /** * Field descriptor: either a field name or a full schema. * A plain string will be converted to a `FieldSchema` with default options. */ export type Field = string | FieldSchema; /** * Set of fields to validate: a single field or an array of fields. */ export type FieldSet = Field | Field[]; /** * Convenience alias for a set of field names. */ export type FieldNameSet = string | string[];