@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
9 lines (8 loc) • 362 B
TypeScript
import { type Client } from '../api/client.js';
import { type Response, type ErrorResponse } from '../types/response.js';
export declare class BaseResource {
protected readonly client: Client;
constructor(client: Client);
protected handleError(error: ErrorResponse): void;
protected handleResponse<T>(response: Response<T> | ErrorResponse): T;
}