UNPKG

soundtouch-api

Version:
15 lines (14 loc) 508 B
import { XMLElement } from './utils'; export declare class APIErrors extends Error { readonly deviceId?: string; readonly errors: APIError[]; constructor(errors: APIError[], deviceId?: string); static fromElement(element: XMLElement): APIErrors | undefined; } export interface APIError { readonly value: number; readonly name: string; readonly severity: string; readonly message?: string; } export declare function errorFromElement(element: XMLElement): APIError | undefined;