Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(toast): refactor 'actionTypes' to resolve ESLint error #6451

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SainathPoojary
Copy link

@SainathPoojary SainathPoojary commented Jan 25, 2025

This PR refactors the actionTypes constant in use-toast.ts to address an ESLint warning (@typescript-eslint/no-unused-vars). Previously, actionTypes was declared as a constant object but only used for its type definition, leading to the linting error.

Changes made:
• Replaced the actionTypes constant with a type declaration (ActionType).
• Removed the unused actionTypes constant to comply with ESLint rules.

Closes: #6450

Copy link

vercel bot commented Jan 25, 2025

@SainathPoojary is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@SainathPoojary SainathPoojary marked this pull request as ready for review January 25, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Unused Variable Error for actionTypes in TypeScript with ESLint in use-toast.ts
1 participant