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