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

style validation? #99

Open
mimshwright opened this issue Jun 30, 2021 · 0 comments
Open

style validation? #99

mimshwright opened this issue Jun 30, 2021 · 0 comments
Milestone

Comments

@mimshwright
Copy link
Owner

It could be helpful to have way to validate the structure of a TextStyleSet object to make sure that all values are in the correct format expected by the component. I have been working in Typescript where the compiler will warn me of any issues but for many users, they will be using JS where they won't necessarily get any warnings. Additionally, end users might be setting styles directly using text-based JSON.

Perhaps this validate function would not be part of TaggedText but a standalone function that could produce output that could be displayed to the end user without throwing an error.

@mimshwright mimshwright added this to the backlog milestone Jun 30, 2021
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

No branches or pull requests

1 participant