Skip to content

debug

Source Code | Documentation

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>
ArgumentTypeDescription
msgstring
fieldNamesstring[]
typemethodsmulti
before, afterallyes

Released under the MIT License.