Skip to content

Commit 366990e

Browse files
committed
fix: fixed type
1 parent 9fe40e7 commit 366990e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/state/persistance/usePersistSignals.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ const persistValue = ({
5050
)
5151
}
5252

53-
function hydrateValueToSignal<Value>({
53+
function hydrateValueToSignal({
5454
adapter,
5555
config
5656
}: {
5757
adapter: Adapter
58-
config: SignalPersistenceConfig<Value>
58+
config: SignalPersistenceConfig<any>
5959
}) {
6060
const { hydrate = ({ value }) => value, signal, version } = config
6161

@@ -73,7 +73,7 @@ function hydrateValueToSignal<Value>({
7373
return of(value)
7474
}
7575

76-
const correctVersionValue = normalizedValue.value as Value
76+
const correctVersionValue = normalizedValue.value
7777

7878
signal.setValue(hydrate({ value: correctVersionValue, version }))
7979

0 commit comments

Comments
 (0)