retrieved

Usage

class User extends Model {
  static entity = 'users'
  static fields () {
    return {
      userId: this.attr(null),
      published: this.attr(false)
    }
  }
  static retrieved (model) {
      // check value saved
    console.log(model.published)
  }
}

Typescript Declarations

export interface AfterHook<M extends Model = Model> {
  (model: M): void
}
const retrieved: AfterHook = () => {}