@univerjs-procollaborationfunctionsTransformdocumentdatatosnapshot

@univerjs-pro/collaboration v0.5.0-beta.1Docs


Function: transformDocumentDataToSnapshot()

function transformDocumentDataToSnapshot(
   context, 
   document, 
   unitID, 
   rev, 
   snapshotService): Promise<{
  snapshot: ISnapshot;
}>

Parameters

ParameterType
contextILogContext
documentIDocumentData
unitIDstring
revnumber
snapshotServiceISnapshotServerService

Returns

Promise<{ snapshot: ISnapshot; }>

NameTypeDefined in
snapshotISnapshotpackages/collaboration/src/services/snapshot/snapshot-transform.ts:343

Defined in

packages/collaboration/src/services/snapshot/snapshot-transform.ts:337