Skip to content

API > @blocksuite/store > Y > Snapshot

Class: Snapshot ​

Constructors ​

constructor ​

new Snapshot(ds, sv): Snapshot

Parameters ​

ParameterTypeDescription
dsDeleteSet-
svMap< number, number >state map

Returns ​

Snapshot

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/Snapshot.d.ts:6

Properties ​

ds ​

ds: DeleteSet

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/Snapshot.d.ts:10


sv ​

sv: Map< number, number >

State Map

Defined In ​

node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/Snapshot.d.ts:15