Skip to content

Commit

Permalink
Clean up alert store a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Aug 14, 2024
1 parent 69fa2c0 commit bef3a73
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/options/stores/alert-store.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import type { Writable } from 'svelte/store';
import { writable } from 'svelte/store';

interface Alert {
variant: string | null;
message: string | null;
}

function createStore() {
const {
subscribe,
set,
}: Writable<{ variant: string | null; message: string | null }> = writable({
const { subscribe, set }: Writable<Alert> = writable({
variant: null,
message: null,
});
Expand Down

0 comments on commit bef3a73

Please sign in to comment.