postgrelize / AfterRestore
Variable: AfterRestore ​
constAfterRestore:ModelStaticMethodDecorator
Defined in: src/decorators/hook-decorators.ts:197
Registers the decorated static method as an afterRestore hook of the model (like Model.afterRestore). 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 {
@AfterRestore
static async onAfterRestore(user: User, options: unknown) {}
}