Skip to content

Commit fdf6cc8

Browse files
refactor: handle only strings
1 parent 19bdf3e commit fdf6cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/composables/usePermalink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Creates a computed property that uses route query parameters by default,
33
* with an option to use local state instead.
44
*/
5-
export function usePermalink<T extends string | number = string>(
5+
export function usePermalink<T extends string = string>(
66
queryKey: string,
77
defaultValue: T = '' as T,
88
options: { permanent?: boolean } = {},

0 commit comments

Comments
 (0)