@stacksjs/error-handling
Version:
Type safe error handling.
12 lines (11 loc) • 387 B
TypeScript
import type { ErrorPageConfig, QueryInfo, RequestContext, RoutingContext, UserContext } from './error-page';
export declare function renderDevErrorPage(opts: {
error: Error
status: number
config: ErrorPageConfig
framework?: { name: string, version?: string }
request?: RequestContext
routing?: RoutingContext
user?: UserContext
queries?: QueryInfo[]
}): Promise<string>;