UNPKG

@jrmc/adonis-attachment

Version:

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

27 lines 775 B
/** * @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'; declare module '@adonisjs/core/types' { interface ContainerBindings { 'jrmc.attachment': AttachmentService; } } 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