Update prettier

This commit is contained in:
Pavel Pustovalov
2020-08-20 02:53:33 -05:00
committed by Umputun
parent 11f222c6e3
commit 71e0e98e05
10 changed files with 86 additions and 107 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export default function debounce<T extends any[]>(
wait: number = 1000
): (...args: Parameters<typeof fn>) => void {
let timeout: number | undefined;
return function(this: any, ...args): void {
return function (this: any, ...args): void {
const laterCall = (): unknown => fn.apply(this, args);
window.clearTimeout(timeout);
timeout = window.setTimeout(laterCall, wait);