Skip to content

Commit

Permalink
feat: use-url-state 出参 typescript 完善
Browse files Browse the repository at this point in the history
  • Loading branch information
zengguhao committed Feb 8, 2025
1 parent c7bb04c commit 9c840ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/use-url-state/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const useUrlState = <S extends UrlState = UrlState>(
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 };
Expand Down

0 comments on commit 9c840ae

Please sign in to comment.