UNPKG

@promptbook/vercel

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

12 lines (11 loc) 457 B
import type { Command as Program } from 'commander'; type actionCallbackFunction = Parameters<Program['action']>[0]; /** * Wraps action to handle error console logging and exit process with error code * * @param action Action to be wrapped in error handling * @returns Wrapped action * @private internal helper function for CLI commands */ export declare function handleActionErrors(action: actionCallbackFunction): actionCallbackFunction; export {};