UNPKG

@jrmc/adonis-attachment

Version:

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

19 lines 626 B
/** * @jrmc/adonis-attachment * * @license MIT * @copyright Jeremy Chaufourier <jeremy@chaufourier.fr> */ import type { RecordWithAttachment as RecordWithAttachmentImplementation } from '../../types/service.js'; export declare class AttachmentDetachmentService { #private; /** * Detach dirty attachments (mark for deletion) */ detach(record: RecordWithAttachmentImplementation): Promise<void>; /** * Detach all attachments (mark all for deletion) */ detachAll(record: RecordWithAttachmentImplementation): Promise<void>; } //# sourceMappingURL=attachment_detachment_service.d.ts.map