@univerjscorefunctionsTodisposable

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


Function: toDisposable()

toDisposable(disposable)

function toDisposable(disposable): IDisposable

Parameters

ParameterType
disposableIDisposable

Returns

IDisposable

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:24

toDisposable(subscription)

function toDisposable(subscription): IDisposable

Parameters

ParameterType
subscriptionSubscriptionLike

Returns

IDisposable

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:25

toDisposable(callback)

function toDisposable(callback): IDisposable

Parameters

ParameterType
callback() => void

Returns

IDisposable

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:26

toDisposable(v)

function toDisposable(v): IDisposable

Parameters

ParameterType
vDisposableLike

Returns

IDisposable

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:27