DisposeHook
DisposeHook<
T> = (instance) =>void|Promise<void>
Defined in: packages/di-craft/src/core/provider/types.ts:41
Cleanup hook called for a cached instance during container disposal.
Transient providers cannot use disposal hooks because their instances are not cached or tracked by the container.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”instance
Section titled “instance”T
Returns
Section titled “Returns”void | Promise<void>