File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,16 @@ import type { ContestsForImport } from '$lib/types/contest';
22import type { TasksForImport } from '$lib/types/task' ;
33import { 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 *
You can’t perform that action at this time.
0 commit comments