UNPKG

@jrmc/adonis-attachment

Version:

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

27 lines 873 B
/** * @jrmc/adonis-attachment * * @license MIT * @copyright Jeremy Chaufourier <jeremy@chaufourier.fr> */ import type { DriveService } from '@adonisjs/drive/types'; import type { VariantAttributes, Variant as VariantInterface } from '../types/attachment.js'; import type { Input } from '../types/input.js'; import { AttachmentBase } from './attachment_base.js'; import { BlurhashOptions } from '../types/converter.js'; export declare class Variant extends AttachmentBase implements VariantInterface { #private; key: string; blurhash?: string; constructor(drive: DriveService, attributes: VariantAttributes, input?: Input); generateBlurhash(options?: BlurhashOptions): Promise<void>; /** * Getters */ get folder(): string; /** * */ toObject(): VariantAttributes; } //# sourceMappingURL=variant_attachment.d.ts.map