UNPKG

adonis-odm

Version:

A comprehensive MongoDB ODM for AdonisJS with Lucid-style API, type-safe relationships, embedded documents, and transaction support

16 lines 1.49 kB
/** * Hook decorators for model lifecycle events */ export declare const beforeSave: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const afterSave: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const beforeCreate: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const afterCreate: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const beforeUpdate: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const afterUpdate: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const beforeDelete: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const afterDelete: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const beforeFind: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const afterFind: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const beforeFetch: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; export declare const afterFetch: () => (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; //# sourceMappingURL=hooks.d.ts.map