UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

12 lines (11 loc) 614 B
import { HttpBase, type InternalJsonUnsafeOptions } from './http'; import type { HttpMethod, HttpOptions, HttpResponse } from './types'; export declare const setBaseUrl: (newBaseUrl: string) => void; export interface ForgejoHttpOptions extends HttpOptions { paginate?: boolean; } export declare class ForgejoHttp extends HttpBase<ForgejoHttpOptions> { protected get baseUrl(): string | undefined; constructor(hostType?: string, options?: HttpOptions); protected requestJsonUnsafe<T = unknown>(method: HttpMethod, options: InternalJsonUnsafeOptions<ForgejoHttpOptions>): Promise<HttpResponse<T>>; }