API Reference
@univerjs
@univerjs/core
functions
Todisposable

@univerjs/core v0.4.2Docs


Function: toDisposable()

toDisposable(disposable)

function toDisposable(disposable): IDisposable

Parameters

ParameterType
disposableIDisposable

Returns

IDisposable

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:24 (opens in a new tab)

toDisposable(subscription)

function toDisposable(subscription): IDisposable

Parameters

ParameterType
subscriptionSubscriptionLike

Returns

IDisposable

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:25 (opens in a new tab)

toDisposable(callback)

function toDisposable(callback): IDisposable

Parameters

ParameterType
callback() => void

Returns

IDisposable

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:26 (opens in a new tab)

toDisposable(v)

function toDisposable(v): IDisposable

Parameters

ParameterType
vDisposableLike

Returns

IDisposable

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:27 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.