UNPKG

privacy.com

Version:

Wrapper for the Privacy.com API using Axios and TypeScript

13 lines (12 loc) 421 B
import { AxiosResponse } from "axios"; import { PrivacyApi } from ".."; export declare abstract class Endpoint { /** HTTP method used in the request */ method: string; /** Path of the request, appended to the baseUrl */ path: string; /** Parameters serialized with the request */ params: object; beforeExecute?(manager: PrivacyApi): void; } export declare type Response<T> = AxiosResponse<T>;