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 69fa2c0 commit bef3a73Copy full SHA for bef3a73
source/options/stores/alert-store.ts
@@ -1,11 +1,13 @@
1
import type { Writable } from 'svelte/store';
2
import { writable } from 'svelte/store';
3
4
+interface Alert {
5
+ variant: string | null;
6
+ message: string | null;
7
+}
8
+
9
function createStore() {
- const {
- subscribe,
- set,
- }: Writable<{ variant: string | null; message: string | null }> = writable({
10
+ const { subscribe, set }: Writable<Alert> = writable({
11
variant: null,
12
message: null,
13
});
0 commit comments