Public typealias

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

UnknownRecord, Store, MigrationSequence

Source

packages/store/src/lib/StoreSchema.ts

StoreSchemaStoreSnapshot