ReviewOS

also looking at this

craft-native/craft

fix(svelte): expose public store declaration types

#310
Merged glennmichael123 wants to merge codex/svelte-public-store-types into main
3 files +58 -2
packages/svelte/src/stores/craft.tsmodified+2-1
Changes to packages/svelte/src/stores/craft.ts
@@ -1,4 +1,5 @@
11import { writable, derived } from 'svelte/store';
2import type { Readable } from 'svelte/store';
23
34interface CraftAPI {
45 getPlatform(): Promise<{ platform: string; version: string }>;
@@ -18,7 +19,7 @@ declare global {
1819 }
1920}
2021
21function createCraftStore() {
22function createCraftStore(): Readable<CraftAPI | null> {
2223 const { subscribe, set } = writable<CraftAPI | null>(null);
2324
2425 if (typeof window !== 'undefined') {