dev-to-js
Version:
An universal client for the Dev.to API written in Typescript
16 lines (15 loc) • 369 B
TypeScript
declare type Config = {
apiKey: string;
basePath?: string;
};
export declare type Pagination = {
page?: number;
per_page?: number;
};
export declare abstract class Base {
private apiKey;
private basePath;
constructor(config: Config);
protected request<T>(endpoint: string, options?: RequestInit): Promise<T>;
}
export {};