diff --git a/src/bot.ts b/src/bot.ts index d70205f..8dd5781 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -77,6 +77,7 @@ import type { ApiEditResponse, ApiMoveResponse, ApiPage, + ApiQueryResponse, ApiResponse, ApiRevision, ApiRollbackResponse, @@ -555,8 +556,11 @@ export class Mwn { ); } - async query(params: ApiParams, customRequestOptions: RawRequestParams = {}): Promise { - return this.request(Object.assign({ action: 'query' }, params), customRequestOptions); + async query(params: ApiParams, customRequestOptions: RawRequestParams = {}): Promise { + return this.request( + Object.assign({ action: 'query' }, params), + customRequestOptions + ) as Promise; } /************** CORE FUNCTIONS *******************/