Function addHook

  • Adds hook meta data for specified model

    Parameters

    • target: any
    • hookType: keyof SequelizeHooks<Model<any, any>, any, any>
    • methodName: string
    • Optional options: HookOptions
      Optional

    Returns void

    Throws

    if applied to a non-static method

    Throws

    if the hook method name is reserved

Generated using TypeDoc