isDisposable
Type guard to check if an object implements the Disposable interface.
Import:
import { isDisposable } from 'obsidian-dev-utils/disposable';Signature:
function isDisposable(obj: unknown): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
obj | unknown | the object to check for the Disposable interface |
Returns: boolean — Whether the object implements the Disposable interface