From 014512440ffa4cd626ec41610859bfb2cc10e5ff Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 19 Jun 2021 22:39:30 +0100 Subject: [PATCH] Fix types. --- src/context/Theme.tsx | 2 +- src/lib/debounce.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/Theme.tsx b/src/context/Theme.tsx index 4c8a8dc9..22c7a357 100644 --- a/src/context/Theme.tsx +++ b/src/context/Theme.tsx @@ -148,7 +148,7 @@ function Theme(props: Props) { ); } -export default connectState(Theme, state => { +export default connectState<{ children: Children }>(Theme, state => { return { options: state.settings.theme }; diff --git a/src/lib/debounce.ts b/src/lib/debounce.ts index c7ac3830..b65292bd 100644 --- a/src/lib/debounce.ts +++ b/src/lib/debounce.ts @@ -1,6 +1,6 @@ export function debounce(cb: Function, duration: number) { // Store the timer variable. - let timer: number; + let timer: NodeJS.Timeout; // This function is given to React. return (...args: any[]) => { // Get rid of the old timer.