API Reference
@univerjs
@univerjs/core
classes
Disposable

@univerjs/core v0.4.2Docs


Class: Disposable

Extended by

Implements

Constructors

new Disposable()

new Disposable(): Disposable

Returns

Disposable

Properties

PropertyModifierTypeDefault valueDefined in
_disposedprotectedbooleanfalsesubmodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Defined in

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Defined in

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


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