UNPKG

@jrmc/adonis-attachment

Version:

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

33 lines 1.06 kB
/** * @jrmc/adonis-attachment * * @license MIT * @copyright Jeremy Chaufourier <jeremy@chaufourier.fr> */ import type { ApplicationService } from '@adonisjs/core/types'; import type { Route } from '@adonisjs/core/http'; import type { AttachmentService } from '../src/types/config.js'; import type { AttachmentEventPayload } from '../src/types/event.js'; declare module '@adonisjs/core/types' { interface ContainerBindings { 'jrmc.attachment': AttachmentService; } interface EventsList { 'attachment:variant_started': AttachmentEventPayload; 'attachment:variant_completed': AttachmentEventPayload; 'attachment:variant_failed': AttachmentEventPayload; } } declare module '@adonisjs/core/http' { interface Router { attachments: (pattern?: string) => Route; } } export default class AttachmentProvider { #private; protected app: ApplicationService; constructor(app: ApplicationService); register(): void; boot(): Promise<void>; } //# sourceMappingURL=attachment_provider.d.ts.map