StoreSchemaOptions

Public TypeAlias

Signature
type StoreSchemaOptions<R extends BaseRecord, P> = {
  snapshotMigrations?: Migrations
  onValidationFailure?: (data: {
    error: unknown
    store: Store<R>
    record: R
    phase: 'createRecord' | 'initialize' | 'tests' | 'updateRecord'
    recordBefore: null | R
  }) => R
  ensureStoreIsUsable?: (store: Store<R, P>) => void
  derivePresenceState?: (store: Store<R, P>) => Signal<null | R>
}
References

BaseRecord, Migrations, Store, Signal

Edit this page
Last edited on 11 May 2023
StoreSchemaStoreSnapshot