From 9fe40e73a1446b94d540e41012954da665b15066 Mon Sep 17 00:00:00 2001 From: Maxime Bret Date: Tue, 16 Jul 2024 15:00:32 +0200 Subject: [PATCH] feat: improve export --- src/lib/state/persistance/types.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/state/persistance/types.ts b/src/lib/state/persistance/types.ts index 2eb8430..55577eb 100644 --- a/src/lib/state/persistance/types.ts +++ b/src/lib/state/persistance/types.ts @@ -1,4 +1,4 @@ -import { type Signal } from "../signal" +import { type SignalValue, type Signal } from "../signal" import type { IDENTIFIER_PERSISTANCE_KEY } from "./constants" export interface Adapter { @@ -14,14 +14,14 @@ export interface PersistanceEntry { [IDENTIFIER_PERSISTANCE_KEY]: typeof IDENTIFIER_PERSISTANCE_KEY } -export interface SignalPersistenceConfig { +export interface SignalPersistenceConfig> { version: number - signal: Signal + signal: S /** * Only called if there is a value to hydrate */ hydrate?: (params: { version: number - value: Value - }) => Value + value: SignalValue + }) => SignalValue }