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($unknown: unknown): boolean

Parameters:

ParameterTypeDescription
$unknownunknown

Returns: boolean — Whether the object implements the AsyncDisposable interface