From eb6c58fcbdbc712028484ae22992cc96e82c6ced Mon Sep 17 00:00:00 2001 From: yoshixmk Date: Thu, 29 Oct 2020 23:27:40 +0900 Subject: [PATCH] fix: type as any --- src/themes/docs/_main.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/themes/docs/_main.tsx b/src/themes/docs/_main.tsx index dab1a16..f1909a1 100644 --- a/src/themes/docs/_main.tsx +++ b/src/themes/docs/_main.tsx @@ -1,5 +1,6 @@ import { React } from "../../../deps.ts"; -import throttle from "https://dev.jspm.io/lodash@4.17.15/throttle"; + +import throttle from "https://dev.jspm.io/lodash@4.17.20/throttle"; import type { GagicLayout } from "../../Gagic.ts"; import Loading from "./_loading.tsx"; @@ -52,7 +53,7 @@ const Main: GagicLayout = (props) => { activeAnchor.classList.add("active"); } }; - window.addEventListener("scroll", throttle(scrollHandler, 100)); + window.addEventListener("scroll", (throttle as any)(scrollHandler, 100)); scrollHandler(); }, []); return (