Skip to content

Commit c8f9bda

Browse files
committed
Export type definition for useSessionStorage
1 parent 394589e commit c8f9bda

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ declare module "@uidotdev/usehooks" {
225225
}
226226
): "idle" | "loading" | "ready" | "error";
227227

228+
export function useSessionStorage<T>(
229+
key: string,
230+
initialValue: T
231+
): [T, React.Dispatch<React.SetStateAction<T>>];
232+
228233
export function useSet<T>(values?: T[]): Set<T>;
229234

230235
export function useSpeech(text: string, options?: SpeechOptions): SpeechState;

0 commit comments

Comments
 (0)