Skip to content

isAsyncDisposable

Type guard to check if an object implements the AsyncDisposable interface.

Import:

import { isAsyncDisposable } from 'obsidian-dev-utils/disposable';

Signature:

function isAsyncDisposable(obj: unknown): boolean

Parameters:

ParameterTypeDescription
objunknownthe object to check for the AsyncDisposable interface

Returns: boolean — Whether the object implements the AsyncDisposable interface