@univerjs/core v0.5.0-beta.1 • Docs
Function: toDisposable()
toDisposable(disposable)
function toDisposable(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | IDisposable |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:24
toDisposable(subscription)
function toDisposable(subscription): IDisposable
Parameters
Parameter | Type |
---|---|
subscription | SubscriptionLike |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:25
toDisposable(callback)
function toDisposable(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | () => void |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:26
toDisposable(v)
function toDisposable(v): IDisposable
Parameters
Parameter | Type |
---|---|
v | DisposableLike |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:27