From fa18dc5dcbd2833458e4dfea301059bd2449cf9e Mon Sep 17 00:00:00 2001 From: Jan Votava Date: Sat, 18 Feb 2023 18:50:44 +0700 Subject: [PATCH] docs: fix typo in example (#9107) --- packages/kit/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kit/types/index.d.ts b/packages/kit/types/index.d.ts index 9cb223abeb5c..042d5b529ddd 100644 --- a/packages/kit/types/index.d.ts +++ b/packages/kit/types/index.d.ts @@ -534,7 +534,7 @@ export interface KitConfig { * * beforeNavigate(({ willUnload, to }) => { * if ($updated && !willUnload && to?.url) { - * location.href = to.route.url.href; + * location.href = to.url.href; * } * }); *