From b95f6655263d955128a6c690a82dc5a1ae25135d Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 7 Feb 2018 23:21:18 +0200 Subject: [PATCH] chore: make TS happy --- src/components/StickySidebar/ChevronSvg.tsx | 4 ++-- src/services/ScrollService.ts | 2 +- src/utils/helpers.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/StickySidebar/ChevronSvg.tsx b/src/components/StickySidebar/ChevronSvg.tsx index 5afb677b53..d84961ccba 100644 --- a/src/components/StickySidebar/ChevronSvg.tsx +++ b/src/components/StickySidebar/ChevronSvg.tsx @@ -26,10 +26,10 @@ export const AnimatedChevronButton = ({ open }: { open: boolean }) => { }; // adapted from reactjs.org -const ChevronSvg = ({ size = 10, className = '', style = {} }) => ( +const ChevronSvg = ({ size = 10, className = '', style }) => ( ( for (const item of items) { res.push(item); if (item[prop]) { - iterate(item[prop]); + iterate((item[prop] as any) as T[]); } } };