Skip to content

Commit

Permalink
fix: fixed type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Jul 16, 2024
1 parent 9fe40e7 commit 366990e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/state/persistance/usePersistSignals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ const persistValue = ({
)
}

function hydrateValueToSignal<Value>({
function hydrateValueToSignal({
adapter,
config
}: {
adapter: Adapter
config: SignalPersistenceConfig<Value>
config: SignalPersistenceConfig<any>
}) {
const { hydrate = ({ value }) => value, signal, version } = config

Expand All @@ -73,7 +73,7 @@ function hydrateValueToSignal<Value>({
return of(value)
}

const correctVersionValue = normalizedValue.value as Value
const correctVersionValue = normalizedValue.value

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

Expand Down

0 comments on commit 366990e

Please sign in to comment.