Added types for store

This commit is contained in:
dominicbachmann 2022-04-06 21:51:19 +02:00
parent a17b7a564e
commit be41c0dd02

View File

@ -1,6 +1,7 @@
import { writable } from 'svelte/store';
import { writable, type Writable } from 'svelte/store';
export const gitTokens = writable({
githubToken: null,
gitlabToken: null
});
export const gitTokens: Writable<{ githubToken: string | null; gitlabToken: string | null }> =
writable({
githubToken: null,
gitlabToken: null
});