Skip to content

Commit 6908863

Browse files
committed
:chore: Fix method order (#1995)
1 parent e6a48f4 commit 6908863

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lib/clients/http_client.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ import type { ContestsForImport } from '$lib/types/contest';
22
import type { TasksForImport } from '$lib/types/task';
33
import { delay } from '$lib/utils/time';
44

5+
/**
6+
* Client interface for interacting with tasks and contests API endpoints.
7+
*
8+
* @template T - The type of parameters to pass to API methods, defaults to void if not specified.
9+
*/
10+
export interface TasksApiClient<T = void> {
11+
getContests(params?: T): Promise<ContestsForImport>;
12+
getTasks(params?: T): Promise<TasksForImport>;
13+
}
14+
515
/**
616
* A client for making HTTP requests to an API with a base URL.
717
*
@@ -47,16 +57,6 @@ export class HttpRequestClient {
4757
}
4858
}
4959

50-
/**
51-
* Client interface for interacting with tasks and contests API endpoints.
52-
*
53-
* @template T - The type of parameters to pass to API methods, defaults to void if not specified.
54-
*/
55-
export interface TasksApiClient<T = void> {
56-
getContests(params?: T): Promise<ContestsForImport>;
57-
getTasks(params?: T): Promise<TasksForImport>;
58-
}
59-
6060
/**
6161
* @deprecated Use `HttpRequestClient` instead.
6262
*

0 commit comments

Comments
 (0)