UNPKG

@felixgeelhaar/govee-api-client

Version:

Enterprise-grade TypeScript client library for the Govee Developer REST API

20 lines 726 B
import { GoveeApiClientError } from './GoveeApiClientError'; export declare class NetworkError extends GoveeApiClientError { readonly code = "NETWORK_ERROR"; readonly errorType: 'timeout' | 'connection' | 'dns' | 'unknown'; constructor(message: string, errorType?: 'timeout' | 'connection' | 'dns' | 'unknown', cause?: Error); static fromAxiosError(error: any): NetworkError; isRetryable(): boolean; getRecommendation(): string; toObject(): { name: string; code: string; message: string; timestamp: string; errorType: string; recommendation: string; stack?: string; cause?: unknown; }; } //# sourceMappingURL=NetworkError.d.ts.map