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

Consider two versions of types: one matching IDL exactly, and one that's stronger #47

Open
kainino0x opened this issue Feb 20, 2021 · 0 comments

Comments

@kainino0x
Copy link
Collaborator

(Long term probably)

The CTS needs the types to match IDL exactly, otherwise they can prevent us from writing tests for certain behavior.

Other projects may prefer stronger guarantees in cases where TypeScript can express something WebIDL cannot (e.g. disabling use of the constructor on GPUDevice, or perhaps allowing only one of the variants of GPUBindGroupLayoutEntry). There will be places we have to be careful not to be excessively strict, though (like allowing only tuples instead of arrays, or only GPUExtensionName instead of string, would be annoying).

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