Skip to content

Commit

Permalink
Fix useObjectState typing
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardobazico committed Mar 6, 2024
1 parent dfa6623 commit 6c0d777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ declare module "@uidotdev/usehooks" {

export function useNetworkState(): NetworkState;

export function useObjectState<T>(initialValue: T): [T, (arg: T) => void];
export function useObjectState<T>(initialValue: T): [T, (arg: Partial<T>) => void];

export function useOrientation(): {
angle: number;
Expand Down

0 comments on commit 6c0d777

Please sign in to comment.