UNPKG

trainingpeaks-sdk

Version:
21 lines 570 B
export type SDKErrorContext = { [key: string]: unknown; }; export type SDKErrorJSON = { name: string; message: string; code: string; context?: SDKErrorContext; stack?: string; cause?: unknown; }; export declare class SDKError extends Error { readonly code: string; readonly context?: SDKErrorContext | undefined; cause?: unknown; constructor(message: string, code: string, context?: SDKErrorContext | undefined, options?: { cause?: unknown; }); toJSON(): SDKErrorJSON; } //# sourceMappingURL=sdk-error.d.ts.map