From c27f52d3c7202feed78a3551735ac4c162920a9d Mon Sep 17 00:00:00 2001 From: Leonardo Bazico Date: Wed, 6 Mar 2024 13:33:42 -0500 Subject: [PATCH] Fix useObjectState typing --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index db01dc2..a75765e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -207,7 +207,7 @@ declare module "@uidotdev/usehooks" { export function useNetworkState(): NetworkState; - export function useObjectState(initialValue: T): [T, (arg: T) => void]; + export function useObjectState(initialValue: T): [T, (arg: Partial) => void]; export function useOrientation(): { angle: number;