@typespec/openapi3
Version:
TypeSpec library for emitting OpenAPI 3.0 and OpenAPI 3.1 from the TypeSpec REST protocol binding and converting OpenAPI3 to TypeSpec
16 lines • 800 B
TypeScript
import { CliHost, CliHostArgs, Logger } from "./types.js";
export declare function withCliHost<T extends CliHostArgs>(fn: (host: CliHost, args: T) => void | Promise<void>): (args: T) => void | Promise<void>;
export declare function createCliHost(): CliHost;
export declare function createConsoleLogger(): Logger;
/**
* Handle an internal compiler error.
*
* NOTE: An expected error, like one thrown for bad input, shouldn't reach
* here, but be handled somewhere else. If we reach here, it should be
* considered a bug and therefore we should not suppress the stack trace as
* that risks losing it in the case of a bug that does not repro easily.
*
* @param error error thrown
*/
export declare function handleInternalCompilerError(error: unknown): never;
//# sourceMappingURL=utils.d.ts.map