Skip to content

Commit b4764ac

Browse files
author
Alec Gibson
committed
Update fetchSnapshot documentation
1 parent a39c141 commit b4764ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Get a read-only snapshot of a document at the requested version.
243243
{
244244
id: string; // ID of the snapshot
245245
v: number; // version number of the snapshot
246-
type: any; // the OT type of the snapshot, or null if it doesn't exist or is deleted
246+
type: string; // the OT type of the snapshot, or null if it doesn't exist or is deleted
247247
data: any; // the snapshot
248248
}
249249
```

lib/client/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ Connection.prototype._firstSnapshotRequest = function (fn) {
627627
* {
628628
* id: string; // ID of the snapshot
629629
* v: number; // version number of the snapshot
630-
* type: any; // the OT type of the snapshot, or null if it doesn't exist or is deleted
630+
* type: string; // the OT type of the snapshot, or null if it doesn't exist or is deleted
631631
* data: any; // the snapshot
632632
* }
633633
*

0 commit comments

Comments
 (0)