node-hue-api
Version:
Philips Hue API Library for Node.js
29 lines (28 loc) • 621 B
TypeScript
export declare const ERROR_TYPES: {
1: string;
2: string;
3: string;
4: string;
5: string;
6: string;
7: string;
8: string;
11: string;
12: string;
901: string;
};
export type HueErrorPayload = {
type?: number;
address?: string;
description?: string;
message?: string;
};
export declare class HueError {
private readonly payload;
constructor(payload: HueErrorPayload);
get type(): number;
get address(): string | undefined;
get description(): string | undefined;
get message(): string | undefined;
get rawError(): HueErrorPayload;
}