Skip to content

Commit c439899

Browse files
Fix typo in READMe
1 parent da9ec60 commit c439899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/collections/powersync-collection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ the `name`, `author` and `created_at` fields are required as input. `name` also
130130
131131
Note: The input and output types specified in this example still satisfy the underlying SQLite types. An additional `deserializationSchema` is required if the typing differs. See the examples below for more details.
132132
133-
The application logic (including the backend) should enforce that all incoming synced data passes validation with the `deserializationSchema`. Failing to validate data will result in inconsistency of the collection data. This is a fatal error! An `onDeserializationError` handler must be provided to react to this case.
133+
The application logic (including the backend) should enforce that all incoming synced data passes validation with the `schema`. Failing to validate data will result in inconsistency of the collection data. This is a fatal error! An `onDeserializationError` handler must be provided to react to this case.
134134
135135
```ts
136136
import { createCollection } from "@tanstack/react-db"
@@ -180,7 +180,7 @@ order to be persisted to SQLite. Most types are converted by default. For custom
180180
181181
The example below uses `nullable` columns, this is not a requirement.
182182
183-
The application logic (including the backend) should enforce that all incoming synced data passes validation with the `deserializationSchema`. Failing to validate data will result in inconsistency of the collection data. This is a fatal error! An `onDeserializationError` handler must be provided to react to this case.
183+
The application logic (including the backend) should enforce that all incoming synced data passes validation with the `schema`. Failing to validate data will result in inconsistency of the collection data. This is a fatal error! An `onDeserializationError` handler must be provided to react to this case.
184184
185185
```ts
186186
const schema = z.object({

0 commit comments

Comments
 (0)