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
Fn
Node
Declaring a Fn function without a Node return type throws a TypeScript error:
const computeFn = Fn(() => {}); // Error: Argument of type '() => void' is not assignable to parameter of type '() => Node'.
This results in a computeFn having an incorrect type, leading to further type errors when attempting to compute the function:
computeFn
const computeNode = computeFn().compute(); // Error: Property 'compute' does not exist on type 'Node'.
It seems to only affects the type, the actual code runs without issues.
This issue was also mention on the Three.js discourse forum: https://discourse.threejs.org/t/are-there-any-up-to-date-webgpu-169-examples/73378
I am willing to work on a pull request to fix this issue.
"@types/three": "0.171" "three": "0.171" "typescript": "5.6.2" "vite": "6.0.1"
A minimal reproducible example is available here: https://github.com/stofi/three-types-tsl-fn-repro
The text was updated successfully, but these errors were encountered:
Feel feel to create a PR
Sorry, something went wrong.
workgroupSize
Successfully merging a pull request may close this issue.
Description
Declaring a
Fn
function without a Node return type throws a TypeScript error:This results in a
computeFn
having an incorrect type, leading to further type errors when attempting to compute the function:It seems to only affects the type, the actual code runs without issues.
This issue was also mention on the Three.js discourse forum:
https://discourse.threejs.org/t/are-there-any-up-to-date-webgpu-169-examples/73378
I am willing to work on a pull request to fix this issue.
Environment:
"@types/three": "0.171"
"three": "0.171"
"typescript": "5.6.2"
"vite": "6.0.1"
Reproduction
A minimal reproducible example is available here:
https://github.com/stofi/three-types-tsl-fn-repro
The text was updated successfully, but these errors were encountered: