We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In this section of the types —
three-ts-types/types/three/src/constants.d.ts
Lines 319 to 322 in 56ec692
The colorspaces are exported only as types, not values. As a result, TypeScript will complain if users do this:
color.setRGB( r, g, b, 'srgb' ); // ✅ OK color.setRGB( r, g, b, THREE.SRGBColorSpace ); // ❌ ERROR
'SRGBColorSpace' only refers to a type, but is being used as a value here.ts(2693)
I think we'd like to allow both, but I'm not sure how to structure that in the TypeScript declarations.
The text was updated successfully, but these errors were encountered:
Thanks @Methuselah96!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
In this section of the types —
three-ts-types/types/three/src/constants.d.ts
Lines 319 to 322 in 56ec692
The colorspaces are exported only as types, not values. As a result, TypeScript will complain if users do this:
I think we'd like to allow both, but I'm not sure how to structure that in the TypeScript declarations.
The text was updated successfully, but these errors were encountered: