fix: soo many lint errors
This commit is contained in:
@@ -6,7 +6,7 @@ type ThrottleOptions = {
|
||||
};
|
||||
|
||||
const useThrottledCallback = (
|
||||
callback: (...args: any[]) => void,
|
||||
callback: (...args: unknown[]) => void,
|
||||
delay: number,
|
||||
options: ThrottleOptions = {},
|
||||
) => {
|
||||
@@ -24,7 +24,7 @@ const useThrottledCallback = (
|
||||
};
|
||||
}, [timer]);
|
||||
|
||||
const throttledCallback = (...args: any[]) => {
|
||||
const throttledCallback = (...args: unknown[]) => {
|
||||
const now = Date.now();
|
||||
|
||||
if (leading && !isLeading) {
|
||||
|
||||
Reference in New Issue
Block a user