diff --git a/src/useStorageValue/index.ts b/src/useStorageValue/index.ts index bc58ec8f..bf47f45e 100644 --- a/src/useStorageValue/index.ts +++ b/src/useStorageValue/index.ts @@ -118,7 +118,7 @@ type UseStorageValueValue< Default extends Type = Type, Initialize extends boolean | undefined = boolean | undefined, N = Default extends null | undefined ? null | Type : Type, - U = Initialize extends false ? undefined | N : N, + U = false extends Initialize ? undefined | N : N, > = U; export type UseStorageValueResult<