mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Fix types.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user