mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
Convert indentation to tabs, as my vscode did not want to cooperate
This commit is contained in:
parent
94fca45af0
commit
cc6a98d23b
4 changed files with 81 additions and 80 deletions
|
@ -466,11 +466,11 @@ export function osmTagToEmoji(tag: string) {
|
|||
}
|
||||
|
||||
export function debounce(func: Function, timeout: number) {
|
||||
let timer: number | NodeJS.Timeout;
|
||||
return (...args: any) => {
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(() => {
|
||||
func(...args);
|
||||
}, timeout);
|
||||
};
|
||||
let timer: number | NodeJS.Timeout;
|
||||
return (...args: any) => {
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(() => {
|
||||
func(...args);
|
||||
}, timeout);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue