also looking at this
fix(svelte): expose public store declaration types
#310
3 files
+58
-2
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | import { writable } from 'svelte/store'; |
| 2 | import type { Readable } from 'svelte/store'; | |
| 2 | 3 | import { craft } from './craft'; |
| 3 | 4 | |
| 4 | export function createPlatformStore() { | |
| 5 | export function createPlatformStore(): Readable<{ platform: string; version: string } | null> { | |
| 5 | 6 | const { subscribe, set } = writable<{ platform: string; version: string } | null>(null); |
| 6 | 7 | |
| 7 | 8 | craft.subscribe(async (_$craft) => { |