fix(ts): cleaned legacy typechecking warning

This commit is contained in:
Corentin Thomasset 2023-04-23 16:12:11 +02:00 committed by Corentin THOMASSET
parent 362f2fa280
commit e88c1d5f2c
7 changed files with 20 additions and 17 deletions

View file

@ -26,7 +26,7 @@ function useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue:
return computed<T>({
get() {
return transformer.fromQuery(proxy.value) as T;
return transformer.fromQuery(proxy.value) as unknown as T;
},
set(value) {
proxy.value = transformer.toQuery(value as never);