[bug]: Unused Variable Error for actionTypes in TypeScript with ESLint in use-toast.ts #6450
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
When using the use-toast.ts file from the shadcn template in a Next.js project, running npm run lint results in the following ESLint error:
Affected component/components
Toast
How to reproduce
Run the following commands to reproduce the issue
Codesandbox/StackBlitz link
No response
Logs
./src/hooks/use-toast.ts 21:7 Error: 'actionTypes' is assigned a value but only used as a type. @typescript-eslint/no-unused-vars
System Info
Before submitting
The text was updated successfully, but these errors were encountered: