UNPKG

wikibase-edit

Version:

Edit Wikibase from NodeJS

19 lines 706 B
import { type Query } from '../utils.js'; import { type HttpHeaders, type HttpMethod, type HttpRequestAgent } from './fetch.js'; import type { PostData } from './post.js'; import type { AbsoluteUrl } from '../types/common.js'; import type { OAuthCredentials } from '../types/config.js'; export interface RequestParams { url: AbsoluteUrl; body?: Query | PostData; oauth?: OAuthCredentials['oauth']; headers?: HttpHeaders; autoRetry?: boolean; httpRequestAgent?: HttpRequestAgent; } export declare function request(method: HttpMethod, params: RequestParams): Promise<any>; export interface APIResponseError { code: string; info: string; } //# sourceMappingURL=request.d.ts.map