diff --git a/src/create-storage-hook/index.ts b/src/create-storage-hook/index.ts index 9776deaf..195408ce 100644 --- a/src/create-storage-hook/index.ts +++ b/src/create-storage-hook/index.ts @@ -106,13 +106,13 @@ export function createStorage(type: StorageType) { key: string, serverValue: NotUndefined, options?: UseStorageRawOption | UseStorageParserOption - ): readonly [NotUndefined, React.Dispatch>]; + ): readonly [T, React.Dispatch>]; // client-render only function useStorage( key: string, serverValue?: undefined, options?: UseStorageRawOption | UseStorageParserOption - ): readonly [NotUndefined | null, React.Dispatch>]; + ): readonly [T | null, React.Dispatch>]; function useStorage( key: string, serverValue?: NotUndefined | undefined,