@univerjsrpcinterfacesIremoteinstanceservice

@univerjs/rpc v0.5.0-beta.1Docs


Interface: IRemoteInstanceService

Methods

createInstance()

createInstance(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.snapshotIWorkbookData
params.typeUniverInstanceType
params.unitIDstring

Returns

Promise<boolean>

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:61


disposeInstance()

disposeInstance(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.unitIDstring

Returns

Promise<boolean>

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:62


syncMutation()

syncMutation(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.mutationInfoIMutationInfo<object>

Returns

Promise<boolean>

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:63


whenReady()

whenReady(): Promise<true>

Tell other modules if the IRemoteInstanceService is ready to load files.

Returns

Promise<true>

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:59