Skip to content

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): boolean

Parameters:

Parameter Type Description
$unknown unknown

Returns: boolean — Whether the object implements the Disposable interface