@univerjscorefunctionsTodisposable

@univerjs/core v0.5.4


Function: toDisposable()

Call Signature

function toDisposable(disposable): IDisposable

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

Parameters

ParameterType
disposableIDisposable

Returns

IDisposable

Call Signature

function toDisposable(subscription): IDisposable

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

Parameters

ParameterType
subscriptionSubscriptionLike

Returns

IDisposable

Call Signature

function toDisposable(callback): IDisposable

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

Parameters

ParameterType
callback() => void

Returns

IDisposable

Call Signature

function toDisposable(v): IDisposable

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

Parameters

ParameterType
vDisposableLike

Returns

IDisposable