Function implementHookDecorator

  • Implementation for hook decorator functions. These are polymorphic. When called with a single argument (IHookOptions) they return a decorator factory function. When called with multiple arguments, they add the hook to the model’s metadata.

    Parameters

    • hookType: keyof SequelizeHooks<Model<any, any>, any, any>
    • args: any[]

    Returns Function | void

Generated using TypeDoc