UNPKG

typerinth

Version:

A TypeScript library for interacting with the Modrinth API.

14 lines (13 loc) 372 B
export declare class ApiError extends Error { private errorName; private errorDescription; constructor(error: string, description: string); /** * Get the error name and description returned by the API * @returns The error name and description in an object */ getApiError(): { error: string; description: string; }; }