UNPKG

@augment-vir/node

Version:

A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.

7 lines (6 loc) 374 B
import { type MaybePromise } from '@augment-vir/core'; /** * Runs a callback (which presumably runs a command within the given `containerName`) and kills the * given `containerName` container if the callback fails. */ export declare function tryOrKillContainer<T>(containerNameOrId: string, callback: (containerNameOrId: string) => MaybePromise<T>): Promise<Awaited<T>>;