mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
More type fixing
This commit is contained in:
parent
4ba89946f4
commit
f0b0365e8f
@ -11,7 +11,7 @@ export function usePersistence<S>(
|
|||||||
key: string,
|
key: string,
|
||||||
defaultValue: S | undefined = undefined
|
defaultValue: S | undefined = undefined
|
||||||
): usePersistenceReturn<S> {
|
): usePersistenceReturn<S> {
|
||||||
const [value, setInternalValue] = useState<any | undefined>(defaultValue);
|
const [value, setInternalValue] = useState<S | undefined>(defaultValue);
|
||||||
const [loaded, setLoaded] = useState<boolean>(false);
|
const [loaded, setLoaded] = useState<boolean>(false);
|
||||||
|
|
||||||
const setValue = useCallback(
|
const setValue = useCallback(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user