adonis-odm
Version:
A comprehensive MongoDB ODM for AdonisJS with Lucid-style API, type-safe relationships, embedded documents, and transaction support
11 lines • 559 B
TypeScript
import { BaseModel } from './base_model.js';
import { ModelQueryBuilder } from '../query_builder/model_query_builder.js';
/**
* Execute hooks for a given hook type
* Returns false if a before hook aborted the operation
*/
export declare function executeHooks<M extends BaseModel, Q extends ModelQueryBuilder<any, M>>(target: M | Q, // Target is the specific model instance or its query builder
hookType: string, modelClass: typeof BaseModel & {
new (...args: any[]): M;
}, ...args: any[]): Promise<boolean>;
//# sourceMappingURL=hooks_executor.d.ts.map