adonis-responsive-attachment
Version:
Generate and persist optimised and responsive breakpoint images on the fly in your AdonisJS application.
37 lines (36 loc) • 1.22 kB
TypeScript
/// <reference types="@adonisjs/validator" />
declare module '@ioc:Adonis/Core/Validator' {
import { Rule } from '@ioc:Adonis/Core/Validator';
interface Rules {
/**
* Ensure image width does not exceed the specified width.
*
* Provided by the Adonis Responsive Attachment addon.
*/
maxImageWidth(value: number): Rule;
/**
* Ensure image height does not exceed the specified height.
*
* Provided by the Adonis Responsive Attachment addon.
*/
maxImageHeight(value: number): Rule;
/**
* Ensure image width is above the specified width.
*
* Provided by the Adonis Responsive Attachment addon.
*/
minImageWidth(value: number): Rule;
/**
* Ensure image height is above the specified height.
*
* Provided by the Adonis Responsive Attachment addon.
*/
minImageHeight(value: number): Rule;
/**
* Ensure image aspect ratio matches the specified aspect ratio
*
* Provided by the Adonis Responsive Attachment addon.
*/
imageAspectRatio(value: number): Rule;
}
}