Skip to content

[three] Fix barrelMask typo in CRT declarations - #75251

Merged
typescript-automation[bot] merged 1 commit into
DefinitelyTyped:masterfrom
Gyeonghun-Park:fix/three-crt-barrel-mask
Jul 31, 2026
Merged

typescript-automation[bot] merged 1 commit into
DefinitelyTyped:masterfrom
Gyeonghun-Park:fix/three-crt-barrel-mask

Conversation

@Gyeonghun-Park

Copy link
Copy Markdown
Contributor

The Three.js r185 CRT module exports barrelMask, but the corresponding
declaration currently exposes barrelMast.

This causes valid named imports of barrelMask to fail type checking even
though the export exists at runtime.

This change:

  • Renames the declaration from barrelMast to barrelMask.
  • Adds a regression test that imports and calls barrelMask through the
    public three/addons/tsl/display/CRT.js path.

Runtime source

https://github.com/mrdoob/three.js/blob/r185/examples/jsm/tsl/display/CRT.js#L45

Validation

  • Confirmed against a local Three.js WebGPU/TSL project using the API.

  • Ran pnpm test three successfully.

  • Use a meaningful title for the pull request. Include the name of the package modified.

  • Test the change in your own code. (Compile and run.)

  • Add or edit tests to reflect the change.

  • Follow the advice from the readme.

  • Avoid common mistakes.

  • Run pnpm test <package to test>.

If changing an existing definition:

Align the CRT declaration with the runtime export and add a regression test for the public addon path.
@typescript-automation

typescript-automation Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

@Gyeonghun-Park Thank you for submitting this PR!

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by a DT maintainer

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 75251,
  "author": "Gyeonghun-Park",
  "headCommitOid": "9dfa7d5b647f9d1782959c76036b24efa1fd88a5",
  "mergeBaseOid": "cec26f473b7deaa37779866f6fe6454c9b3873ef",
  "lastPushDate": "2026-07-13T09:03:35.000Z",
  "lastActivityDate": "2026-07-31T18:20:09.000Z",
  "mergeOfferDate": "2026-07-31T18:18:54.000Z",
  "mergeRequestDate": "2026-07-31T18:20:09.000Z",
  "mergeRequestUser": "Methuselah96",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "tooManyCommits": false,
  "tooManyReviews": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "three",
      "kind": "edit",
      "files": [
        {
          "path": "types/three/examples/jsm/tsl/display/CRT.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/three/test/unit/examples/jsm/tsl/display/CRT.ts",
          "kind": "test"
        },
        {
          "path": "types/three/tsconfig.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "joshuaellis",
        "Methuselah96"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "RyanCavanaugh",
      "date": "2026-07-31T18:18:14.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "Methuselah96",
      "date": "2026-07-13T12:34:38.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 4956244392,
  "ciResult": "pass"
}

@typescript-automation

Copy link
Copy Markdown
Contributor

🔔 @joshuaellis @Methuselah96 — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-automation typescript-automation Bot moved this to Waiting for Code Reviews in Pull Request Status Board Jul 13, 2026
@typescript-automation typescript-automation Bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Jul 13, 2026

@Methuselah96 Methuselah96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@typescript-automation typescript-automation Bot added the Owner Approved A listed owner of this package signed off on the pull request. label Jul 13, 2026
@typescript-automation typescript-automation Bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Jul 24, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

Re-ping @joshuaellis:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@typescript-automation typescript-automation Bot moved this from Needs Maintainer Review to Needs Maintainer Action in Pull Request Status Board Jul 31, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @Gyeonghun-Park.

(Ping @joshuaellis.)

@typescript-automation typescript-automation Bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Jul 31, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

@Gyeonghun-Park: Everything looks good here. I am ready to merge this PR (at 9dfa7d5) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@joshuaellis, @Methuselah96: you can do this too.)

@typescript-automation typescript-automation Bot moved this from Needs Maintainer Action to Waiting for Author to Merge in Pull Request Status Board Jul 31, 2026
@Methuselah96

Copy link
Copy Markdown
Contributor

Ready to merge

@typescript-automation typescript-automation Bot moved this from Waiting for Author to Merge to Recently Merged in Pull Request Status Board Jul 31, 2026
@typescript-automation
typescript-automation Bot merged commit 7446100 into DefinitelyTyped:master Jul 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Maintainer Approved Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants