Skip to content

combine

Source Code | Documentation

Sequentially execute multiple hooks.

ts
  import { 
combine
} from 'feathers-utils/hooks';

Type declaration

ts
/**
 * Sequentially execute multiple hooks.
 *
 * @see https://utils.feathersjs.com/utils/combine.html
 */
export declare function combine<H extends HookContext = HookContext>(
  ...serviceHooks: HookFunction<H>[]
): (context: H) => Promise<H>
ArgumentTypeDescription
serviceHooksHookFunction<H>[]
typemethodsmulti
before, afterallyes

Released under the MIT License.