A helper for creating a TLStore schema from either an object with shapeUtils, bindingUtils, and migrations, or a schema.

function createTLSchemaFromUtils(
  opts: TLStoreSchemaOptions
): StoreSchema<TLRecord, TLStoreProps>
Parameters
NameDescription

opts

TLStoreSchemaOptions

Options for creating the schema.

Returns
StoreSchema<TLRecord, TLStoreProps>
createSessionStateSnapshotSignalcreateTLStore