We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d4588c commit a471676Copy full SHA for a471676
src/lib/stores/active_contest_type.svelte.ts
@@ -14,6 +14,16 @@ import { type ContestTableProviders } from '$lib/utils/contest_table_provider';
14
export class ActiveContestTypeStore {
15
value = $state<ContestTableProviders>('abcLatest20Rounds');
16
17
+ /**
18
+ * Creates an instance with the specified contest type.
19
+ *
20
+ * @param defaultContestType - The default contest type to initialize.
21
+ * Defaults to 'abcLatest20Rounds'.
22
+ */
23
+ constructor(defaultContestType: ContestTableProviders = 'abcLatest20Rounds') {
24
+ this.value = defaultContestType;
25
+ }
26
+
27
/**
28
* Gets the current contest table providers.
29
*
0 commit comments