@timesheet/sdk
Version:
Official TypeScript SDK for the Timesheet API
13 lines • 553 B
TypeScript
import type { ApiClient } from '../http';
import type { Page } from '../models';
import { NavigablePage } from '../models';
export interface ResourceConfig {
basePath: string;
}
export declare abstract class Resource {
protected readonly http: ApiClient;
protected readonly basePath: string;
protected constructor(http: ApiClient, config: ResourceConfig | string);
protected createNavigablePage<R>(page: Page<R>, nextPageLoader: (page: number) => Promise<NavigablePage<R>>): NavigablePage<R>;
}
//# sourceMappingURL=Resource.d.ts.map