StoreSchema
Public Class
Table of Contents
Signature
class StoreSchema<R extends BaseRecord, P = unknown> {}
References
Properties
currentStoreVersion
Public Readonly Property
Signature
get currentStoreVersion(): number
types
Public Readonly Property
Signature
readonly types: {
[Record in R as Record['typeName']]: RecordType<R, any>
}
References
Methods
create()
Public Static Method
Parameters
Name | Description |
---|---|
|
|
(optional) |
|
Returns
StoreSchema<R, P>
References
BaseRecord, StoreSchemaOptions, StoreSchema
migratePersistedRecord()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
(optional) |
|
Returns
MigrationResult<R>
References
SerializedSchema, MigrationResult
migrateStoreSnapshot()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
MigrationResult<StoreSnapshot<R>>
References
StoreSnapshot, SerializedSchema, MigrationResult
serialize()
Public Method
Parameters
None
Returns
SerializedSchema
References
serializeEarliestVersion()
Public Method
Parameters
None
Returns
SerializedSchema
References
validateRecord()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
|
|
Returns
R