Skip to content

Commit b29ea82

Browse files
authored
Merge pull request #111 from CS3219-AY2425S1/jehou/questiondb
Fix ESlint
2 parents 8392bac + 6ab1195 commit b29ea82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/app/(auth)/leetcode-dashboard/components/LeetcodeDashboardTable.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ const ActionsCell: React.FC<ActionCellProps> = ({
156156
);
157157
};
158158

159-
function debounce<T extends (...args: any[]) => void>(func: T, timeout = 300) {
159+
function debounce<T extends (...args: Parameters<T>) => void>(
160+
func: T,
161+
timeout = 300
162+
) {
160163
let timer: NodeJS.Timeout | undefined;
161164
return (...args: Parameters<T>) => {
162165
if (timer) clearTimeout(timer);

0 commit comments

Comments
 (0)