Skip to content

postgrelize / AfterBulkDestroy

Variable: AfterBulkDestroy ​

const AfterBulkDestroy: ModelStaticMethodDecorator

Defined in: src/decorators/hook-decorators.ts:317

Registers the decorated static method as an afterBulkDestroy hook of the model (like Model.afterBulkDestroy). The method receives the hook arguments; static methods only. Registered when sequelize.addModels applies the class. Accepts the TC39 and the legacy experimentalDecorators call signature.

Example ​

ts
class User extends Model {
  @AfterBulkDestroy
  static async onAfterBulkDestroy(options: unknown) {}
}

Released under the MIT License.