diff --git a/types/feathersjs__feathers/index.d.ts b/types/feathersjs__feathers/index.d.ts index b3a0f60667..0aaa146f1d 100644 --- a/types/feathersjs__feathers/index.d.ts +++ b/types/feathersjs__feathers/index.d.ts @@ -14,6 +14,7 @@ declare const feathers: (() => Application) & typeof self; export default feathers; export const version: string; +export const SKIP: SkipSymbol; export type Id = number | string; export type NullableId = Id | null; @@ -45,7 +46,9 @@ export interface Paginated { } // tslint:disable-next-line void-return -export type Hook = (hook: HookContext) => (Promise | void); +export type Hook = (hook: HookContext) => (Promise | HookContext | SkipSymbol | void); + +export type SkipSymbol = Symbol | '__feathersSkipHooks'; export interface HookContext { app?: Application;