From 6a5708bde85fa9291e2701a3c418489414d0158d Mon Sep 17 00:00:00 2001 From: stevekrouse Date: Wed, 15 Sep 2021 13:49:47 +0100 Subject: [PATCH] adds HashChangeEvent type annotation --- src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(