Skip to content

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

Parameters:

ParameterTypeDescription
objunknownthe object to check for the Disposable interface

Returns: boolean — Whether the object implements the Disposable interface