Skip to content

Commit 6c0d777

Browse files
committedMar 6, 2024
Fix useObjectState typing
1 parent dfa6623 commit 6c0d777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ declare module "@uidotdev/usehooks" {
207207

208208
export function useNetworkState(): NetworkState;
209209

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

212212
export function useOrientation(): {
213213
angle: number;

0 commit comments

Comments
 (0)
Failed to load comments.