From 4891cd3bbdc33f819f15966c7176d2d26bd1f51f Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Sat, 7 Feb 2026 11:23:12 +0300 Subject: [PATCH] feat(PersistentStore): add type for PersistentStore --- .../createPersistentStore/createPersistentStore.svelte.ts | 2 ++ src/shared/lib/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/shared/lib/helpers/createPersistentStore/createPersistentStore.svelte.ts b/src/shared/lib/helpers/createPersistentStore/createPersistentStore.svelte.ts index cfb37ad..761998b 100644 --- a/src/shared/lib/helpers/createPersistentStore/createPersistentStore.svelte.ts +++ b/src/shared/lib/helpers/createPersistentStore/createPersistentStore.svelte.ts @@ -49,3 +49,5 @@ export function createPersistentStore(key: string, defaultValue: T) { }, }; } + +export type PersistentStore = ReturnType>; diff --git a/src/shared/lib/index.ts b/src/shared/lib/index.ts index 56882c0..99ade48 100644 --- a/src/shared/lib/index.ts +++ b/src/shared/lib/index.ts @@ -14,6 +14,7 @@ export { type Filter, type FilterModel, type LineData, + type PersistentStore, type Property, type ResponsiveManager, responsiveManager,