trainingpeaks-sdk
Version:
TypeScript SDK for TrainingPeaks API integration
21 lines • 570 B
TypeScript
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