Fix types.

This commit is contained in:
Paul 2021-06-19 22:39:30 +01:00
parent 31d8950ea1
commit 014512440f
2 changed files with 2 additions and 2 deletions

View file

@ -148,7 +148,7 @@ function Theme(props: Props) {
); );
} }
export default connectState(Theme, state => { export default connectState<{ children: Children }>(Theme, state => {
return { return {
options: state.settings.theme options: state.settings.theme
}; };

View file

@ -1,6 +1,6 @@
export function debounce(cb: Function, duration: number) { export function debounce(cb: Function, duration: number) {
// Store the timer variable. // Store the timer variable.
let timer: number; let timer: NodeJS.Timeout;
// This function is given to React. // This function is given to React.
return (...args: any[]) => { return (...args: any[]) => {
// Get rid of the old timer. // Get rid of the old timer.