aws-cdk
Version:
AWS CDK CLI, the command line tool for CDK apps
7 lines (6 loc) • 329 B
TypeScript
import type { IoHelper } from '../../api-private';
/**
* Run an async callback, swallowing any errors and logging them as debug messages.
* Use this for code paths that must never break CLI execution.
*/
export declare function trapErrors<T>(ioHelper: IoHelper, message: string, cb: () => Promise<T>): Promise<T | undefined>;