@univerjs/core v0.4.2 • Docs
Function: toDisposable()
toDisposable(disposable)
function toDisposable(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | IDisposable |
Returns
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:24 (opens in a new tab)
toDisposable(subscription)
function toDisposable(subscription): IDisposable
Parameters
Parameter | Type |
---|---|
subscription | SubscriptionLike |
Returns
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:25 (opens in a new tab)
toDisposable(callback)
function toDisposable(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | () => void |
Returns
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:26 (opens in a new tab)
toDisposable(v)
function toDisposable(v): IDisposable
Parameters
Parameter | Type |
---|---|
v | DisposableLike |
Returns
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:27 (opens in a new tab)