UNPKG

@jrmc/adonis-attachment

Version:

Turn any field on your Lucid model to an attachment data type

24 lines 750 B
/** * @jrmc/adonis-attachment * * @license MIT * @copyright Jeremy Chaufourier <jeremy@chaufourier.fr> */ import type { Attachment, Variant, LucidOptions } from '../../types/attachment.js'; import type { Converter } from '../../types/converter.js'; export default class VariantGeneratorService { #private; generate({ attachments, options, filters }: { attachments: Attachment[]; options: LucidOptions; filters?: { variants?: string[]; }; }): Promise<Variant[]>; generateVariant({ key, attachment, converter }: { key: string; attachment: Attachment; converter: Converter; }): Promise<Variant | null>; } //# sourceMappingURL=variant_generator_service.d.ts.map