Public typealias

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

UnknownRecord, Migrations, Store

Source

packages/store/src/lib/StoreSchema.ts

StoreSchemaStoreSnapshot