ImageSchemaclass

new ImageSchema({ one = "image", title = "Image", types = IMAGE_TYPES, ...options }: MediaSchemaOptions)
ParamType
optionsMediaSchemaOptions
Allowed options for MediaSchema. required
    .captureFileCapture
Which camera a file picker for this schema opens straight away, or undefined for the normal picker. readonly
Return
ImageSchema
Schema that validates the file name of an image.

Schema that validates the file name of an image.

  • The extension must be one of types (default IMAGE_TYPES).