Skip to content

Commit

Permalink
Fix useObjectState typing
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardobazico committed Aug 4, 2024
1 parent 90fbbb4 commit c27f52d
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 c27f52d

Please sign in to comment.