diff --git a/packages/feathers/src/hooks.ts b/packages/feathers/src/hooks.ts index f69bb20059..c80e34b2f5 100644 --- a/packages/feathers/src/hooks.ts +++ b/packages/feathers/src/hooks.ts @@ -14,7 +14,8 @@ import { FeathersService, HookMap, AroundHookFunction, - HookFunction + HookFunction, + Application } from './declarations' import { defaultServiceArguments, getHookMethods } from './service' @@ -213,3 +214,7 @@ export function hookMixin(this: A, service: FeathersService, path: string, return service } + +export const defineHooks = (hooks: HookMap) => { + return hooks +}