mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 07:02:10 -05:00
Fix types.
This commit is contained in:
parent
31d8950ea1
commit
014512440f
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue