Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Commit

Permalink
fix: type as any
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshixmk committed Oct 29, 2020
1 parent 472b626 commit eb6c58f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/themes/docs/_main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { React } from "../../../deps.ts";
import throttle from "https://dev.jspm.io/[email protected]/throttle";

import throttle from "https://dev.jspm.io/[email protected]/throttle";

import type { GagicLayout } from "../../Gagic.ts";
import Loading from "./_loading.tsx";
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit eb6c58f

Please sign in to comment.