From 8e2e752bb44a1d23e10db95846d19febbeb865d2 Mon Sep 17 00:00:00 2001 From: William Volin Date: Mon, 4 Nov 2024 23:13:05 -0700 Subject: [PATCH] fix: inline type on RequestParams --- lib/api/Account.ts | 3 +-- lib/api/Categories.ts | 3 +-- lib/api/Leaderboards.ts | 3 +-- lib/api/Runs.ts | 3 +-- lib/api/Users.ts | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/api/Account.ts b/lib/api/Account.ts index 73bad992..f5ec6ceb 100644 --- a/lib/api/Account.ts +++ b/lib/api/Account.ts @@ -19,8 +19,7 @@ import type { UserViewModel, ValidationProblemDetails, } from './data-contracts' -import type { RequestParams } from './http-client' -import { ContentType, HttpClient } from './http-client' +import { ContentType, HttpClient, type RequestParams } from './http-client' export class Account< SecurityDataType = unknown, diff --git a/lib/api/Categories.ts b/lib/api/Categories.ts index 444f6e89..e18fc08d 100644 --- a/lib/api/Categories.ts +++ b/lib/api/Categories.ts @@ -15,8 +15,7 @@ import type { ProblemDetails, ValidationProblemDetails, } from './data-contracts' -import type { RequestParams } from './http-client' -import { ContentType, HttpClient } from './http-client' +import { ContentType, HttpClient, type RequestParams } from './http-client' export class Categories< SecurityDataType = unknown, diff --git a/lib/api/Leaderboards.ts b/lib/api/Leaderboards.ts index 8db81155..5d559ae4 100644 --- a/lib/api/Leaderboards.ts +++ b/lib/api/Leaderboards.ts @@ -18,8 +18,7 @@ import type { UpdateLeaderboardRequest, ValidationProblemDetails, } from './data-contracts' -import type { RequestParams } from './http-client' -import { ContentType, HttpClient } from './http-client' +import { ContentType, HttpClient, type RequestParams } from './http-client' export class Leaderboards< SecurityDataType = unknown, diff --git a/lib/api/Runs.ts b/lib/api/Runs.ts index fc363a5a..1a4495e3 100644 --- a/lib/api/Runs.ts +++ b/lib/api/Runs.ts @@ -18,8 +18,7 @@ import type { TimedRunViewModel, ValidationProblemDetails, } from './data-contracts' -import type { RequestParams } from './http-client' -import { ContentType, HttpClient } from './http-client' +import { ContentType, HttpClient, type RequestParams } from './http-client' export class Runs< SecurityDataType = unknown, diff --git a/lib/api/Users.ts b/lib/api/Users.ts index 901c955b..5c32f6dd 100644 --- a/lib/api/Users.ts +++ b/lib/api/Users.ts @@ -10,8 +10,7 @@ */ import type { ProblemDetails, UserViewModel } from './data-contracts' -import type { RequestParams } from './http-client' -import { HttpClient } from './http-client' +import { HttpClient, type RequestParams } from './http-client' export class Users< SecurityDataType = unknown,