Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: angatupyry <fierrofenix@gmail.com>
  • Loading branch information
Angatupyry committed Oct 9, 2023
1 parent b32f61c commit 794456f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ interface ShapeThreeRenderingProps {
circleShape: boolean;
}

export const debounce = <T extends (...args: any[]) => void>(callback: T, delay: number) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const debounce = <T extends (...args: any[]) => void>(
callback: T,
delay: number,
): ((...args: Parameters<T>) => void) => {
let timeoutId: NodeJS.Timeout | null = null;
return (...args: Parameters<T>) => {
if (timeoutId) {
Expand Down

0 comments on commit 794456f

Please sign in to comment.