Skip to content
Snippets Groups Projects
Commit 01451244 authored by insert's avatar insert
Browse files

Fix types.

parent 31d8950e
No related merge requests found
...@@ -148,7 +148,7 @@ function Theme(props: Props) { ...@@ -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
}; };
......
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.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment