Skip to main content

StoreFieldDefinition

Defines a single field in a store schema.

StoreSchema

A record of field names to their definitions.

StoresConfig

A record of store names to their schemas. Passed to the client constructor.

InferDocument

Infers a TypeScript type from a store schema. Required fields become mandatory keys; optional fields become optional keys.
Example: