chore(): lint for trailing commas, fix tests with new types

This commit is contained in:
Tiago Siebler
2023-03-22 17:02:12 +00:00
parent 831689e857
commit e9972ef829
20 changed files with 86 additions and 85 deletions

View File

@@ -30,7 +30,7 @@ export interface RestClientOptions {
export function serializeParams<T extends object | undefined = {}>(
params: T,
strict_validation = false,
prefixWith: string = ''
prefixWith: string = '',
): string {
if (!params) {
return '';
@@ -42,7 +42,7 @@ export function serializeParams<T extends object | undefined = {}>(
const value = params[key];
if (strict_validation === true && typeof value === 'undefined') {
throw new Error(
'Failed to sign API request due to undefined parameter'
'Failed to sign API request due to undefined parameter',
);
}
return `${key}=${value}`;
@@ -55,7 +55,7 @@ export function serializeParams<T extends object | undefined = {}>(
export function getRestBaseUrl(
useTestnet: boolean,
restInverseOptions: RestClientOptions
restInverseOptions: RestClientOptions,
): string {
const exchangeBaseUrls = {
livenet: 'https://api.bitget.com',