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

Replace string array with enum for PreferencePaneId and add generic type to Dropdown component #2890

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

besdar
Copy link

@besdar besdar commented Jan 17, 2025

This pull request makes two improvements to the codebase:

  1. Replaces the existing string array PREFERENCE_PANE_IDS with an enum PreferencePaneId to improve type safety and maintainability.

  2. Adds a generic type T to the Dropdown component to improve type safety and flexibility.

@besdar besdar force-pushed the preference-pane-id-enum branch from 571bc4f to 3951a31 Compare January 17, 2025 17:36
@besdar besdar force-pushed the preference-pane-id-enum branch from 3951a31 to c7b3ddc Compare January 17, 2025 18:14
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.

1 participant