combine
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>| Argument | Type | Description |
|---|---|---|
| serviceHooks | HookFunction<H>[] |
| type | methods | multi |
|---|---|---|
| before, after | all | yes |
