UNPKG

@capgo/cli

Version:
7 lines (6 loc) • 273 B
/** * Run `fn` while every ambient stdout write (clack logs, dependency output) is * routed to stderr, so a `--json` command can print exactly one JSON document * on stdout afterwards. */ export declare function withStdoutOnStderr<T>(fn: () => Promise<T>): Promise<T>;