Skip to content

Commit f73fe79

Browse files
committed
fix linting
1 parent 1e87d88 commit f73fe79

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/sdk/src/server/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import * as oauth from "oauth4webapi";
66
import {
7-
Account, BaseClient, type AppInfo, type ConnectTokenResponse, type RequestOptions
7+
Account, BaseClient, type AppInfo, type ConnectTokenResponse, type RequestOptions,
88
} from "../shared/index.js";
99
export * from "../shared/index.js";
1010

@@ -116,8 +116,7 @@ export type MakeProxyRequestOpts = {
116116
*/
117117
method: string;
118118
headers?: Record<string, string>;
119-
//headers: Record<string, string>;
120-
body?: any
119+
body?: string;
121120
};
122121

123122
/**
@@ -393,10 +392,10 @@ export class BackendClient extends BaseClient {
393392
*
394393
* @returns A promise resolving to the response from the downstream service
395394
*/
396-
public makeProxyRequest(url: string, query: any, opts: MakeProxyRequestOpts): Promise<any> {
395+
public makeProxyRequest(url: string, query: Record<string, string | boolean | number | null>, opts: MakeProxyRequestOpts): Promise<string> {
397396
const url64 = btoa(url).replace(/\+/g, "-")
398-
.replace(/\//g, "_")
399-
.replace(/=+$/, "");
397+
.replace(/\//g, "_")
398+
.replace(/=+$/, "");
400399

401400
const headers = opts.headers || {};
402401

0 commit comments

Comments
 (0)