import type { HookHandler, HookPosition, HookType, HooksContext } from './types'; import type { AggregateResult, Aggregation, Caller, Filter, PaginatedFilter, Projection, RecordData } from '@forestadmin/datasource-toolkit'; import { CollectionDecorator } from '@forestadmin/datasource-toolkit'; export default class CollectionHookDecorator extends CollectionDecorator { private hooks; addHook
(position: P, type: T, handler: HookHandler