We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8392bac + 6ab1195 commit b29ea82Copy full SHA for b29ea82
frontend/src/app/(auth)/leetcode-dashboard/components/LeetcodeDashboardTable.tsx
@@ -156,7 +156,10 @@ const ActionsCell: React.FC<ActionCellProps> = ({
156
);
157
};
158
159
-function debounce<T extends (...args: any[]) => void>(func: T, timeout = 300) {
+function debounce<T extends (...args: Parameters<T>) => void>(
160
+ func: T,
161
+ timeout = 300
162
+) {
163
let timer: NodeJS.Timeout | undefined;
164
return (...args: Parameters<T>) => {
165
if (timer) clearTimeout(timer);
0 commit comments