diff --git a/src/context/Theme.tsx b/src/context/Theme.tsx
index 4c8a8dc92b4bf2c376789efc1f3e7313ee21b03e..22c7a357e261ea2e56c9c67c17db7553e54cf50d 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 c7ac383076c2c0cb827c2fa70397ea3cdd0ee1cf..b65292bd4486ebac17ca8dfbd484652f68463849 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.