astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
12 lines (11 loc) • 560 B
TypeScript
import { type ErrorWithMetadata } from '../errors.js';
/**
* Takes any error-like object and returns a standardized Error + metadata object.
* Useful for consistent reporting regardless of where the error surfaced from.
*/
export declare function collectErrorMetadata(e: any, rootFolder?: URL): ErrorWithMetadata;
export declare function getDocsForError(err: ErrorWithMetadata): string | undefined;
/**
* Render a subset of Markdown to HTML or a CLI output
*/
export declare function renderErrorMarkdown(markdown: string, target: 'html' | 'cli'): string;