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

Type for hardcoded string values that aren't enum values #6

Open
dontcallmedom opened this issue Jun 21, 2021 · 2 comments
Open

Type for hardcoded string values that aren't enum values #6

dontcallmedom opened this issue Jun 21, 2021 · 2 comments

Comments

@dontcallmedom
Copy link
Member

e.g. MediaStreamTrack.kind isn't an enum (because of whatwg/webidl#893), but can only take a few well-defined hardcoded values; it would be good if they could be marked-up in a way that reflects their token-like nature. (including considering #5 and #3 )

@marcoscaceres
Copy link
Contributor

Related #8

@dontcallmedom
Copy link
Member Author

a few other examples of hardcoded strings that could use this for lack of a more detailed taxonomy:

(there probably should also be a broader discussion on extending the taxonomy of known definition types, for HTTP header values, for WebDriver keywords - but I think a discussion on a generic fallback still has merits)

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

2 participants