Skip to content

Commit

Permalink
fix: localstorage export type for setvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Jul 12, 2024
1 parent 406aa02 commit cb44314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/use-local-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useEventListener } from "./use-event-listener";

const isNil = (val: unknown) => val == null;

type SetValue<T> = Dispatch<SetStateAction<T>>;
export type SetValue<T> = Dispatch<SetStateAction<T>>;

/**
* Creating and read here and using window.setItem for writes. This avoids
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.119",
"version": "0.0.120",
"private": false,
"sideEffects": false,
"type": "module",
Expand Down

0 comments on commit cb44314

Please sign in to comment.