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