From 039279dc18fcd9e1de37a5784d4a0bc9b47905fb Mon Sep 17 00:00:00 2001 From: "Alessandro Segala (ItalyPaleAle)" <43508+ItalyPaleAle@users.noreply.github.com> Date: Sun, 7 Aug 2022 09:44:05 -0700 Subject: [PATCH] Updated type docs --- Router.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Router.svelte b/Router.svelte index 0260cb1..92341a2 100644 --- a/Router.svelte +++ b/Router.svelte @@ -195,7 +195,7 @@ export function link(node, opts) { /** * Tries to restore the scroll state from the given history state. * - * @param {object} state - The history state to restore from. + * @param {{__svelte_spa_router_scrollX: number, __svelte_spa_router_scrollY: number}} [state] - The history state to restore from. */ export function restoreScroll(state) { // If this exists, then this is a back navigation: restore the scroll position