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>
}