`onBeforeRender` of `Reflector` & `Refractor` type is mismatched

Open
#348 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
three.js, typescript

Research direction

Start by locating the type declarations and implementations for Reflector and Refractor in three-stdlib, then compare their onBeforeRender signatures with the three and @types/three versions listed. Done means the callback accepts the intended three parameters without TypeScript errors; verify with the repository's available type-checking or test command.

Written by the indexing model from the issue text.

Description

bug
  • three version: 0.160.0
  • @types/three version: 0.162.0
  • three-stdlib version: 2.29.4
Problem description:

I receive this parameters type errors for Reflector and Refractor, where it should have accept 3 parameters instead.

image

Dominant language
JavaScript
Stars
863
Forks
146
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/three-stdlib

All issues in pmndrs/three-stdlib

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.