isIDisposable Function

Deprecated  in 5.0 - might be removed in next major version. Use isDisposable instead.

A type guard that checks whether the given argument implements IDisposable interface

isIDisposable(obj: unknown): obj is IDisposable

Parameter Type Description
obj unknown  

Returns - obj is IDisposable

Defined in

Last Updated: 16 June, 2026