Commit ebb38a0
committed
📝 Update
`Snapshot.type` should be marked as a `string`, since it's a
serializable form of a `Doc`, and the serializable form of a type is its
URI.
The `snapshot.type` is assumed to be a URI at many points in the code:
- https://github.com/share/sharedb/blob/e29936ca2dffd187b3fcfa3ca1b7e83becb6a2dc/lib/projections.js#L82
- https://github.com/share/sharedb/blob/99ea28e003bdba4e7fcba7c45e70d47f30ea96f5/lib/ot.js#L80
- https://github.com/share/sharedb/blob/e29936ca2dffd187b3fcfa3ca1b7e83becb6a2dc/lib/agent.js#L562-L563Snapshot documentation1 parent 916705a commit ebb38a0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments