UNPKG

@jrmc/adonis-attachment

Version:

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

17 lines 690 B
import type { RecordWithAttachment as RecordWithAttachmentImplementation } from '../../types/service.js'; import type { RegenerateOptions } from '../../types/regenerate.js'; export interface VariantOptions { variants?: string[]; } export declare class AttachmentVariantService { #private; /** * Generate variants for all dirty attachment attributes */ generateVariants(record: RecordWithAttachmentImplementation): Promise<void>; /** * Regenerate variants with specific options */ regenerateVariants(record: RecordWithAttachmentImplementation, options?: RegenerateOptions): Promise<void>; } //# sourceMappingURL=attachment_variant_service.d.ts.map