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