From 9c840aee036228d6edcbd2f9118dc584e52684f5 Mon Sep 17 00:00:00 2001 From: zengguhao Date: Sat, 8 Feb 2025 13:45:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20use-url-state=20=E5=87=BA=E5=8F=82=20ty?= =?UTF-8?q?pescript=20=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/use-url-state/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/use-url-state/src/index.ts b/packages/use-url-state/src/index.ts index d2c7f3c3e8..b89ba4e1d9 100644 --- a/packages/use-url-state/src/index.ts +++ b/packages/use-url-state/src/index.ts @@ -30,7 +30,7 @@ const useUrlState = ( initialState?: S | (() => S), options?: Options, ) => { - type State = Partial<{ [key in keyof S]: any }>; + type State = Partial<{ [key in keyof S]: string }>; const { navigateMode = 'push', parseOptions, stringifyOptions } = options || {}; const mergedParseOptions = { ...baseParseConfig, ...parseOptions };