@jrmc/adonis-attachment
Version:
Turn any field on your Lucid model to an attachment data type
15 lines • 719 B
TypeScript
/**
* @jrmc/adonis-attachment
*
* @license MIT
* @copyright Jeremy Chaufourier <jeremy@chaufourier.fr>
*/
import type { LucidModel, LucidRow } from '@adonisjs/lucid/types/model';
import type { LucidOptions } from '../types/attachment.js';
import type { AttributeOfRowWithAttachment } from '../types/mixin.js';
export declare const bootModel: (model: LucidModel & {
$attachments: AttributeOfRowWithAttachment;
}) => void;
export declare const attachment: <T = LucidRow>(options?: LucidOptions<T>) => (target: any, attributeName: string) => void;
export declare const attachments: <T = LucidRow>(options?: LucidOptions<T>) => (target: any, attributeName: string) => void;
//# sourceMappingURL=attachment.d.ts.map