Skip to content

Commit bef3a73

Browse files
committed
Clean up alert store a bit
1 parent 69fa2c0 commit bef3a73

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/options/stores/alert-store.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import type { Writable } from 'svelte/store';
22
import { writable } from 'svelte/store';
33

4+
interface Alert {
5+
variant: string | null;
6+
message: string | null;
7+
}
8+
49
function createStore() {
5-
const {
6-
subscribe,
7-
set,
8-
}: Writable<{ variant: string | null; message: string | null }> = writable({
10+
const { subscribe, set }: Writable<Alert> = writable({
911
variant: null,
1012
message: null,
1113
});

0 commit comments

Comments
 (0)