Skip to content

Commit

Permalink
fix: type error on bindToQueryString
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Aug 23, 2024
1 parent 83e7400 commit 03affc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coalesce-vue/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ export function bindToQueryString<T, TKey extends keyof T & string>(
parse,
stringify,
}: BindToQueryStringOptions<T[TKey]> = {}
) {
): void {
if (isRef(obj) && typeof key == "string" && key !== "value") {
return bindToQueryString(vue, obj, "value", { queryKey: key });
}
Expand Down Expand Up @@ -1163,7 +1163,7 @@ export function useBindToQueryString<T, TKey extends keyof T & string>(
obj: T,
key: TKey,
options?: BindToQueryStringOptions<T[TKey]>
) {
): void {
const vue = getCurrentInstance()?.proxy;
if (!vue)
throw new Error(
Expand Down

0 comments on commit 03affc6

Please sign in to comment.