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/platform.tsmodified+2-1
Changes to packages/svelte/src/stores/platform.ts
@@ -1,7 +1,8 @@
11import { writable } from 'svelte/store';
2import type { Readable } from 'svelte/store';
23import { craft } from './craft';
34
4export function createPlatformStore() {
5export function createPlatformStore(): Readable<{ platform: string; version: string } | null> {
56 const { subscribe, set } = writable<{ platform: string; version: string } | null>(null);
67
78 craft.subscribe(async (_$craft) => {