Skip to content

postgrelize / AfterBulkRestore

Variable: AfterBulkRestore ​

const AfterBulkRestore: ModelStaticMethodDecorator

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

Registers the decorated static method as an afterBulkRestore hook of the model (like Model.afterBulkRestore). 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 {
  @AfterBulkRestore
  static async onAfterBulkRestore(options: unknown) {}
}

Released under the MIT License.