UNPKG

near-protocol-rewards

Version:

A transparent, metric-based rewards system for NEAR projects

14 lines (13 loc) 419 B
import { ErrorDetail } from "../types/errors"; import { JSONValue } from "../types/json"; /** * Formats any error into a consistent structure * for logging and error handling */ export declare function formatError(error: unknown): ErrorDetail; export declare function toErrorContext(error: unknown): { error: ErrorDetail; }; export declare function toJSONErrorContext(error: unknown): { error: JSONValue; };