@jrmc/adonis-attachment
Version:
Turn any field on your Lucid model to an attachment data type
24 lines • 675 B
TypeScript
/**
* @jrmc/adonis-attachment
*
* @license MIT
* @copyright Jeremy Chaufourier <jeremy@chaufourier.fr>
*/
import type { Attachment, Variant } from '../../types/attachment.js';
type PersistAttributes = {
id: string;
modelTable: string;
attributeName: string;
multiple: boolean;
primaryKey: string;
};
export default class VariantPersisterService {
#private;
constructor({ id, modelTable, attributeName, multiple, primaryKey }: PersistAttributes);
persist({ attachments, variants }: {
attachments: Attachment[];
variants: Variant[];
}): Promise<void>;
}
export {};
//# sourceMappingURL=variant_persister_service.d.ts.map