Skip to content

type ColorModeInstance.value as readonly #317

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

Open
OrbisK opened this issue Apr 8, 2025 · 0 comments
Open

type ColorModeInstance.value as readonly #317

OrbisK opened this issue Apr 8, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@OrbisK
Copy link

OrbisK commented Apr 8, 2025

value: string

Is your feature request related to a problem? Please describe.

colorMode.value should be readonly at least as type.

Additional context

I always fall for writing to value instead of preference. Maybe with readonly type we can make it more obvious not to write to value.

@OrbisK OrbisK added the enhancement New feature or request label Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant