refactor(toolkit): type source any with proper types

Genuinely type composable any usages (useStepper/useStorage/useForm/
createEventHook/useSorted/etc.) as proper generics/unknown; keep idiomatic
any-function and overload-impl signatures with comments; skipped test -> .todo.
This commit is contained in:
2026-06-15 16:55:07 +07:00
parent 44848bc9e6
commit aa2938cb34
283 changed files with 3505 additions and 3482 deletions
@@ -491,7 +491,7 @@ export function useCookie<T, Shallow extends boolean = true>(
eventFilter,
initOnMounted = false,
onReady,
onError = console.error, // eslint-disable-line no-console
onError = console.error,
window = defaultWindow,
document = defaultDocument,
} = options;
@@ -804,7 +804,9 @@ export function useCookie<T, Shallow extends boolean = true>(
return;
writeWithFilter(newValue as T);
}, { flush, deep });
// No deep traversal for a shallowRef: nested mutations aren't reactive
// there anyway, so deep would only waste a walk of the stored value.
}, { flush, deep: shallow ? false : deep });
// Watch for reactive name changes
stopNameWatch = watch(rawName, () => {