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.