Summary
The DotGrid component in apps/web/components/DotGrid.tsx uses any types in its throttle utility function. These should be replaced with proper TypeScript types.
Current code (lines 8-11)
const throttle = (func: (...args: any[]) => void, limit: number) => {
let lastCall = 0;
return function (this: any, ...args: any[]) {
// ...
What to do
Replace the any types with proper generics or specific types:
const throttle = <T extends (...args: unknown[]) => void>(func: T, limit: number) => {
let lastCall = 0;
return function (this: ThisParameterType<T>, ...args: Parameters<T>) {
// ...
Files
apps/web/components/DotGrid.tsx (lines 8-11)
Acceptance criteria
Summary
The
DotGridcomponent inapps/web/components/DotGrid.tsxusesanytypes in its throttle utility function. These should be replaced with proper TypeScript types.Current code (lines 8-11)
What to do
Replace the
anytypes with proper generics or specific types:Files
apps/web/components/DotGrid.tsx(lines 8-11)Acceptance criteria
anyusages in the throttle function are replaced with proper typeseslint-disablecomments are addedpnpm build(no TypeScript errors)