watchtower-node-sdk
Version:
A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more
11 lines (10 loc) • 593 B
TypeScript
import { AxiosInstance, AxiosRequestConfig } from 'axios';
export declare abstract class BaseEndpoint {
protected client: AxiosInstance;
protected basePath: string;
constructor(client: AxiosInstance, basePath: string);
protected get<T = any>(path: string, config?: AxiosRequestConfig): Promise<T>;
protected post<T = any>(path: string, data?: any, config?: AxiosRequestConfig): Promise<T>;
protected put<T = any>(path: string, data?: any, config?: AxiosRequestConfig): Promise<T>;
protected delete<T = any>(path: string, config?: AxiosRequestConfig): Promise<T>;
}