debug
Display the current hook context for debugging.
ts
import { debug } from 'feathers-utils/hooks';Type declaration
ts
/**
* Display the current hook context for debugging.
*
* @see https://utils.feathersjs.com/hooks/debug.html
*/
export declare const debug: <H extends HookContext = HookContext>(
msg: string,
...fieldNames: string[]
) => (context: H, next?: NextFunction) => Promise<void>| Argument | Type | Description |
|---|---|---|
| msg | string | |
| fieldNames | string[] |
| type | methods | multi |
|---|---|---|
| before, after | all | yes |
