diff --git a/src/router.ts b/src/router.ts index d52a817..75fb72d 100644 --- a/src/router.ts +++ b/src/router.ts @@ -61,7 +61,7 @@ export const locationHashB = behaviorFromEvent( window, "hashchange", (w) => takeUntilRight("#", w.location.hash) || "/", - (evt) => takeUntilRight("#", evt.newURL) + (evt: HashChangeEvent) => takeUntilRight("#", evt.newURL) ); export const locationB = behaviorFromEvent(